> How else would you implement C++’s vector::operator[] for example?
Are you asking in a theoretical world where it isn’t defined to already return a `T&`?
Are you asking in a theoretical world where it isn’t defined to already return a `T&`?
My overall advice here would be that if you find yourself implementing vector-like data structures very often, then it is time to take a second look the design.