2 ms·
I think most people agree that operator[] is a big footgun for containers, but rigorous use of const helps at least prevent surprises.
by UncleMeat 7y ago
I think most people agree that operator[] is a big footgun for containers, but rigorous use of const helps at least prevent surprises.
- gumby 7y agoAnd operator new is hardly used any more in modern C++ code.