Is it possible to define an overloaded operator[]
that takes more than one argument? That is, can I define operator[]
as follows:
//In some class
double operator[](const int a, const int b){
return big_array[a+offset*b];}
and later use it like this?
double b=some_obj[7,3];