Copying Container Elements From The C++ Library: It's Trickier Than It Looks

We must generally assume that adding elements to a vector will invalidate every reference, pointer, or iterator that refers to a vector element.


May 30, 2013
URL:http://www.drdobbs.com/cpp/copying-container-elements-from-the-c-li/240155771

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.