Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82062 - sandbox/static_vector/boost/container
From: adam.wulkiewicz_at_[hidden]
Date: 2012-12-17 22:10:41


Author: awulkiew
Date: 2012-12-17 22:10:40 EST (Mon, 17 Dec 2012)
New Revision: 82062
URL: http://svn.boost.org/trac/boost/changeset/82062

Log:
capacity() and max_size() made static
Text files modified:
   sandbox/static_vector/boost/container/static_vector.hpp | 5 +++--
   1 files changed, 3 insertions(+), 2 deletions(-)

Modified: sandbox/static_vector/boost/container/static_vector.hpp
==============================================================================
--- sandbox/static_vector/boost/container/static_vector.hpp (original)
+++ sandbox/static_vector/boost/container/static_vector.hpp 2012-12-17 22:10:40 EST (Mon, 17 Dec 2012)
@@ -521,10 +521,11 @@
     const_reverse_iterator crend() const { return reverse_iterator(this->begin()); }
 
     // nothrow
- size_type capacity() const { return Capacity; }
- size_type max_size() const { return Capacity; }
+ static size_type capacity() { return Capacity; }
+ static size_type max_size() { return Capacity; }
     size_type size() const { return m_size; }
     bool empty() const { return 0 == m_size; }
+ void shrink_to_fit() {}
 
 private:
 


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