STL containers are inevitable to implement sequential or linked data collection. To improve efficiency of programs, I often consider to refer their elements by using the pointer(or reference).
As you know, std::vector entails transfer of entire memory domains when calling push_back has no capacity, which makes troubles in permanent safe reference.
Is permanency of memory address of each element in STL containers determined in the specification of the C++ standard? (Or does their behavior differ in library's implementations?)
Thank you for your rapid and accurate reply.
Today, I feel understanding the usage of std::list for the first time.
Thank you so much
Last edited on