Sunday, August 15, 2010

capacity() and reserve()

Vector and string provide the functions capacity() and reserve(). They are the only STL containers that have these functions.

Reference: The C++ Standard Library by Nicolai M. Josuttis. Addison-Wesley, 1999, p. 163.

No comments:

Post a Comment