back_inserter(v) = 42; inserter(v, v.end()) = 42; v.push_back(42);Reference: The C++ Standard Library: A Tutorial and Reference by Nicolai M. Josuttis. Addison-Wesley, 1999, p. 272.
Thursday, July 8, 2010
Inserting into a vector
Given a vector v, all of the following do the same thing:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment