|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52955 - sandbox/memory/boost/memory
From: xushiweizh_at_[hidden]
Date: 2009-05-12 23:01:43
Author: xushiwei
Date: 2009-05-12 23:01:43 EDT (Tue, 12 May 2009)
New Revision: 52955
URL: http://svn.boost.org/trac/boost/changeset/52955
Log:
scoped_object_pool
Text files modified:
sandbox/memory/boost/memory/object_pool.hpp | 18 ++++++++++++++++++
1 files changed, 18 insertions(+), 0 deletions(-)
Modified: sandbox/memory/boost/memory/object_pool.hpp
==============================================================================
--- sandbox/memory/boost/memory/object_pool.hpp (original)
+++ sandbox/memory/boost/memory/object_pool.hpp 2009-05-12 23:01:43 EDT (Tue, 12 May 2009)
@@ -257,6 +257,24 @@
};
// -------------------------------------------------------------------------
+// class scoped_object_pool
+
+template <class Type>
+class scoped_object_pool : public object_pool_traits<Type, NS_BOOST_MEMORY_POLICY::scoped>::type
+{
+private:
+ typedef typename object_pool_traits<Type, NS_BOOST_MEMORY_POLICY::scoped>::type Base;
+ typedef typename Base::alloc_type AllocT;
+
+public:
+ __forceinline scoped_object_pool() {
+ }
+ __forceinline explicit scoped_object_pool(AllocT alloc) :
+ Base(alloc) {
+ }
+};
+
+// -------------------------------------------------------------------------
// $Log: $
NS_BOOST_MEMORY_END
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