|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54160 - sandbox/monotonic/boost/monotonic
From: christian.schladetsch_at_[hidden]
Date: 2009-06-21 19:57:51
Author: cschladetsch
Date: 2009-06-21 19:57:50 EDT (Sun, 21 Jun 2009)
New Revision: 54160
URL: http://svn.boost.org/trac/boost/changeset/54160
Log:
reformatting
Text files modified:
sandbox/monotonic/boost/monotonic/storage.hpp | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
Modified: sandbox/monotonic/boost/monotonic/storage.hpp
==============================================================================
--- sandbox/monotonic/boost/monotonic/storage.hpp (original)
+++ sandbox/monotonic/boost/monotonic/storage.hpp 2009-06-21 19:57:50 EDT (Sun, 21 Jun 2009)
@@ -24,23 +24,23 @@
template <size_t InlineSize, size_t MinHeapIncrement, class Al>
struct storage : storage_base
{
+ BOOST_STATIC_CONSTANT(size_t, NumPools = 8);
+ BOOST_STATIC_CONSTANT(size_t, ChunkShift = 4);
+ BOOST_STATIC_CONSTANT(size_t, ChunkSize = 1 << ChunkShift);
+
+ typedef storage<InlineSize, MinHeapIncrement, Al> This;
typedef Al Allocator;
typedef typename Allocator::template rebind<char>::other CharAllocator;
typedef detail::Link<CharAllocator> Link;
- typedef storage<InlineSize, MinHeapIncrement, Al> This;
- typedef std::vector<Link> Chain;
typedef detail::Pool<This> Pool;
+ typedef std::vector<Link> Chain;
+ typedef boost::array<Pool, NumPools> Pools;
private:
fixed_storage<InlineSize> fixed; // the inline fixed-sized storage which may be on the stack
- Chain chain; // heap-based storage
- Allocator alloc; // allocator for heap-based storage
-
- BOOST_STATIC_CONSTANT(size_t, NumPools = 8);
- BOOST_STATIC_CONSTANT(size_t, ChunkShift = 4);
- BOOST_STATIC_CONSTANT(size_t, ChunkSize = 1 << ChunkShift);
-
- boost::array<Pool, NumPools> pools;
+ Chain chain; // heap-based storage
+ Allocator alloc; // allocator for heap-based storage
+ Pools pools; // pools of same-sized chunks
void create_pools()
{
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