In numpy, one can access the array as following
import numpy as np
a = np.arange(3*2).reshape(3, 2)
b = a[0, 1]
In c++, is it possible to overload the operator [] to implement the similar function as a[0, 1]
? Of course, the number of input arguments can vary.