Using Templates in Multi-Dimensional Operator Overloading
Learn how to use templates in multi-dimensional operator overloading.
We'll cover the following...
Multi- dimensional operator overloading
In the operator overloading chapter, you saw that opDollar, opIndex, and opSlice are for element indexing and slicing. When overloaded for single-dimensional collections, these operators have the following responsibilities:
-
opDollar: Returns the number of elements of the collection -
opSlice: Returns an object that ...
Ask