I'm looking in the C++ Standard (draft n3797), and I can't find any documentation of pop_back
as it applies to std::vector
, only for std::list
. Is it really missing?
Specifically I was looking for the guarantee that pop_back
doesn't change the capacity. Or is there such a guarantee at all? (I expect that iterators and references to other elements will remain valid, but I can't find that guarantee, and it wouldn't restrict the case of removing the last element, anyway)