it is possible to overload somehow operator for multidimensional array?
Something like:
class A { ... int& operator[][] (const int x, const i
No, there's just operator[]. As an alternative, you can overload:
operator[]
int &operator()(int x, int y);
You can use that:
m(4, 5);