What could be a “least bad implementation” for an iterator over a proxied container?
问题 Context I was trying to implement a nD array like container. Something that would wrap an underlying sequence container and allow to process it as a container of containers (of...): arr[i][j][k] should be a (eventually const) reference for _arr[(((i * dim2) + j) * dim3) + k] . Ok until there, arr[i] has just to be a wrapper class over the subarray... And when I tried to implement interators, I suddenly realized that dragons were everywhere around: my container is not a standard compliant