Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82643 - sandbox/varray/example
From: adam.wulkiewicz_at_[hidden]
Date: 2013-01-27 13:38:46


Author: awulkiew
Date: 2013-01-27 13:38:46 EST (Sun, 27 Jan 2013)
New Revision: 82643
URL: http://svn.boost.org/trac/boost/changeset/82643

Log:
varray example fixed.
Text files modified:
   sandbox/varray/example/varray_example.cpp | 5 ++---
   1 files changed, 2 insertions(+), 3 deletions(-)

Modified: sandbox/varray/example/varray_example.cpp
==============================================================================
--- sandbox/varray/example/varray_example.cpp (original)
+++ sandbox/varray/example/varray_example.cpp 2013-01-27 13:38:46 EST (Sun, 27 Jan 2013)
@@ -28,11 +28,10 @@
   three.push_back(2); // size: 2
   three.push_back(3); // size: 3
   
- //three.reserve(4); // no effect, fixed capacity: 3
- //three.push_back(3); // size: 4, behavior depends on strategy, assert by default
+ //three.reserve(4); // assert/no effect, fixed capacity: 3
+ //three.push_back(3); // assert/undefined behavior, fixed capacity: 3
   
   three.pop_back(); // size: 2
- three.shrink_to_fit(); // no effect, fixed capacity: 3
   
   return 0;
 }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk