diff options
Diffstat (limited to 'boost/interprocess/allocators/cached_node_allocator.hpp')
-rw-r--r-- | boost/interprocess/allocators/cached_node_allocator.hpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/boost/interprocess/allocators/cached_node_allocator.hpp b/boost/interprocess/allocators/cached_node_allocator.hpp index 03398156db..b0ad0e4ebc 100644 --- a/boost/interprocess/allocators/cached_node_allocator.hpp +++ b/boost/interprocess/allocators/cached_node_allocator.hpp @@ -28,7 +28,7 @@ #include <cstddef> //!\file -//!Describes cached_cached_node_allocator pooled shared memory STL compatible allocator +//!Describes cached_cached_node_allocator pooled shared memory STL compatible allocator namespace boost { namespace interprocess { @@ -64,7 +64,7 @@ class cached_node_allocator_v1 template<class T2> struct rebind - { + { typedef cached_node_allocator_v1 <T2, SegmentManager, NodesPerBlock> other; }; @@ -72,7 +72,7 @@ class cached_node_allocator_v1 typedef typename base_t::size_type size_type; cached_node_allocator_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) {} @@ -122,12 +122,12 @@ class cached_node_allocator template<class T2> struct rebind - { + { typedef cached_node_allocator<T2, SegmentManager, NodesPerBlock> other; }; cached_node_allocator(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) {} @@ -151,11 +151,11 @@ class cached_node_allocator typedef typename SegmentManager::size_type size_type; typedef typename SegmentManager::difference_type difference_type; - //!Obtains cached_node_allocator from + //!Obtains cached_node_allocator from //!cached_node_allocator template<class T2> struct rebind - { + { typedef cached_node_allocator<T2, SegmentManager> other; }; @@ -166,7 +166,7 @@ class cached_node_allocator cached_node_allocator& operator= (const cached_node_allocator<T2, SegmentManager2, N2>&); - //!Not assignable from + //!Not assignable from //!other cached_node_allocator cached_node_allocator& operator=(const cached_node_allocator&); @@ -176,7 +176,7 @@ class cached_node_allocator //!Can throw boost::interprocess::bad_alloc cached_node_allocator(segment_manager *segment_mngr); - //!Copy constructor from other cached_node_allocator. Increments the reference + //!Copy constructor from other cached_node_allocator. Increments the reference //!count of the associated node pool. Never throws cached_node_allocator(const cached_node_allocator &other); @@ -203,7 +203,7 @@ class cached_node_allocator //!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); @@ -227,7 +227,7 @@ class cached_node_allocator //!Never throws const_pointer address(const_reference value) const; - //!Default construct an object. + //!Default construct an object. //!Throws if T's default constructor throws void construct(const pointer &ptr, const_reference v); @@ -242,7 +242,7 @@ class cached_node_allocator 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); @@ -307,13 +307,13 @@ class cached_node_allocator //!Equality test for same type //!of cached_node_allocator template<class T, class S, std::size_t NPC> inline -bool operator==(const cached_node_allocator<T, S, NPC> &alloc1, +bool operator==(const cached_node_allocator<T, S, NPC> &alloc1, const cached_node_allocator<T, S, NPC> &alloc2); //!Inequality test for same type //!of cached_node_allocator template<class T, class S, std::size_t NPC> inline -bool operator!=(const cached_node_allocator<T, S, NPC> &alloc1, +bool operator!=(const cached_node_allocator<T, S, NPC> &alloc1, const cached_node_allocator<T, S, NPC> &alloc2); #endif |