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
It is possible if you return some kind of proxy class in first [] call. However, there is other option: you can overload operator() that can accept any number of arguments (function(3,3)).
function(3,3)