Is it possible to overload [] operator twice? To allow, something like this: function[3][3](like in a two dimensional array).
[]
function[3][3]
If it is pos
If, instead of saying a[x][y], you would like to say a[{x,y}], you can do like this:
struct Coordinate { int x, y; } class Matrix { int** data; operator[](Coordinate c) { return data[c.y][c.x]; } }