Is it guaranteed that std::vector default construction does not call new? – stackoverflow.com

According to the reference a simple std::vector<T> vec; creates an emtpy container (default constructor). Does this guarantee that there is no dynamic memory allocation? Or may an implementation ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "Is it guaranteed that std::vector default construction does not call new? – stackoverflow.com"