3 ms·
I'm not super familiar with C++, however Rust has an advantage over this example as it avoids iterator invalidation at compile time by assigning the iterator a
by lewisinc 8y ago
I'm not super familiar with C++, however Rust has an advantage over this example as it avoids iterator invalidation at compile time by assigning the iterator a lifetime.
- pjmlp 8y agoWhile not the same thing, some C++ compilers like Visual C++ do that at runtime in debug builds.