On Tue, 05 May 2015 15:00:38 -0700, asetofsymbols wrote:
> Is it possible to define operator operator[][]?
> (and operator[][][] and operator[][][][])
No. But you can define operator[] such that its return type supports
subscripting (either a pointer or a class which itself implements operator[]).
Alternatively, you could use operator() for array acess, so a[i][j][k]
becomes a(i,j,k).