Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53110 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-05-19 11:24:21


Author: xushiwei
Date: 2009-05-19 11:24:18 EDT (Tue, 19 May 2009)
New Revision: 53110
URL: http://svn.boost.org/trac/boost/changeset/53110

Log:
fixed_alloc::element_size
Text files modified:
   sandbox/memory/boost/memory/fixed_alloc.hpp | 5 +++++
   1 files changed, 5 insertions(+), 0 deletions(-)

Modified: sandbox/memory/boost/memory/fixed_alloc.hpp
==============================================================================
--- sandbox/memory/boost/memory/fixed_alloc.hpp (original)
+++ sandbox/memory/boost/memory/fixed_alloc.hpp 2009-05-19 11:24:18 EDT (Tue, 19 May 2009)
@@ -114,6 +114,11 @@
                 clear();
         }
 
+ size_type BOOST_MEMORY_CALL element_size() const
+ {
+ return m_cbChunk - ChunkHeaderSize;
+ }
+
         alloc_type BOOST_MEMORY_CALL get_alloc() const
         {
                 return m_alloc;


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