diff options
Diffstat (limited to 'boost/interprocess/allocators/cached_adaptive_pool.hpp')
-rw-r--r-- | boost/interprocess/allocators/cached_adaptive_pool.hpp | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/boost/interprocess/allocators/cached_adaptive_pool.hpp b/boost/interprocess/allocators/cached_adaptive_pool.hpp index bec1050de5..98af033fe6 100644 --- a/boost/interprocess/allocators/cached_adaptive_pool.hpp +++ b/boost/interprocess/allocators/cached_adaptive_pool.hpp @@ -28,7 +28,7 @@ #include <cstddef> //!\file -//!Describes cached_adaptive_pool pooled shared memory STL compatible allocator +//!Describes cached_adaptive_pool pooled shared memory STL compatible allocator namespace boost { namespace interprocess { @@ -69,7 +69,7 @@ class cached_adaptive_pool_v1 template<class T2> struct rebind - { + { typedef cached_adaptive_pool_v1 <T2, SegmentManager, NodesPerBlock, MaxFreeBlocks, OverheadPercent> other; }; @@ -77,7 +77,7 @@ class cached_adaptive_pool_v1 typedef typename base_t::size_type size_type; cached_adaptive_pool_v1(SegmentManager *segment_mngr, - size_type max_cached_nodes = base_t::DEFAULT_MAX_CACHED_NODES) + size_type max_cached_nodes = base_t::DEFAULT_MAX_CACHED_NODES) : base_t(segment_mngr, max_cached_nodes) {} @@ -93,12 +93,12 @@ class cached_adaptive_pool_v1 /// @endcond -//!An STL node allocator that uses a segment manager as memory +//!An STL node allocator that uses a segment manager as memory //!source. The internal pointer type will of the same type (raw, smart) as //!"typename SegmentManager::void_pointer" type. This allows //!placing the allocator in shared memory, memory mapped-files, etc... //! -//!This node allocator shares a segregated storage between all instances of +//!This node allocator shares a segregated storage between all instances of //!cached_adaptive_pool with equal sizeof(T) placed in the same //!memory segment. But also caches some nodes privately to //!avoid some synchronization overhead. @@ -149,13 +149,13 @@ class cached_adaptive_pool template<class T2> struct rebind - { + { typedef cached_adaptive_pool <T2, SegmentManager, NodesPerBlock, MaxFreeBlocks, OverheadPercent> other; }; cached_adaptive_pool(SegmentManager *segment_mngr, - std::size_t max_cached_nodes = base_t::DEFAULT_MAX_CACHED_NODES) + std::size_t max_cached_nodes = base_t::DEFAULT_MAX_CACHED_NODES) : base_t(segment_mngr, max_cached_nodes) {} @@ -179,11 +179,11 @@ class cached_adaptive_pool typedef typename segment_manager::size_type size_type; typedef typename segment_manager::difference_type difference_type; - //!Obtains cached_adaptive_pool from + //!Obtains cached_adaptive_pool from //!cached_adaptive_pool template<class T2> struct rebind - { + { typedef cached_adaptive_pool<T2, SegmentManager, NodesPerBlock, MaxFreeBlocks, OverheadPercent> other; }; @@ -194,7 +194,7 @@ class cached_adaptive_pool cached_adaptive_pool& operator= (const cached_adaptive_pool<T2, SegmentManager2, N2, F2, OP2>&); - //!Not assignable from + //!Not assignable from //!other cached_adaptive_pool cached_adaptive_pool& operator=(const cached_adaptive_pool&); @@ -204,7 +204,7 @@ class cached_adaptive_pool //!Can throw boost::interprocess::bad_alloc cached_adaptive_pool(segment_manager *segment_mngr); - //!Copy constructor from other cached_adaptive_pool. Increments the reference + //!Copy constructor from other cached_adaptive_pool. Increments the reference //!count of the associated node pool. Never throws cached_adaptive_pool(const cached_adaptive_pool &other); @@ -231,7 +231,7 @@ class cached_adaptive_pool //!Never throws size_type max_size() const; - //!Allocate memory for an array of count elements. + //!Allocate memory for an array of count elements. //!Throws boost::interprocess::bad_alloc if there is no enough memory pointer allocate(size_type count, cvoid_pointer hint = 0); @@ -255,7 +255,7 @@ class cached_adaptive_pool //!Never throws const_pointer address(const_reference value) const; - //!Copy construct an object. + //!Copy construct an object. //!Throws if T's copy constructor throws void construct(const pointer &ptr, const_reference v); @@ -270,7 +270,7 @@ class cached_adaptive_pool std::pair<pointer, bool> allocation_command(boost::interprocess::allocation_type command, - size_type limit_size, + size_type limit_size, size_type preferred_size, size_type &received_size, const pointer &reuse = 0); @@ -335,13 +335,13 @@ class cached_adaptive_pool //!Equality test for same type //!of cached_adaptive_pool template<class T, class S, std::size_t NodesPerBlock, std::size_t F, std::size_t OP> inline -bool operator==(const cached_adaptive_pool<T, S, NodesPerBlock, F, OP> &alloc1, +bool operator==(const cached_adaptive_pool<T, S, NodesPerBlock, F, OP> &alloc1, const cached_adaptive_pool<T, S, NodesPerBlock, F, OP> &alloc2); //!Inequality test for same type //!of cached_adaptive_pool template<class T, class S, std::size_t NodesPerBlock, std::size_t F, std::size_t OP> inline -bool operator!=(const cached_adaptive_pool<T, S, NodesPerBlock, F, OP> &alloc1, +bool operator!=(const cached_adaptive_pool<T, S, NodesPerBlock, F, OP> &alloc1, const cached_adaptive_pool<T, S, NodesPerBlock, F, OP> &alloc2); #endif |