|
Thrill
0.1
|
Inheritance diagram for PoolAllocator< Type >:
Collaboration diagram for PoolAllocator< Type >:#include <pool.hpp>
Classes | |
| struct | rebind |
| Return allocator for different type. More... | |
Public Types | |
| using | const_pointer = const Type * |
| using | const_reference = const Type & |
| using | difference_type = std::ptrdiff_t |
| using | is_always_equal = std::false_type |
| C++11 type flag. More... | |
| using | pointer = Type * |
| using | reference = Type & |
| using | size_type = std::size_t |
| using | value_type = Type |
Public Types inherited from AllocatorBase< Type > | |
| using | const_pointer = const Type * |
| using | const_reference = const Type & |
| using | difference_type = std::ptrdiff_t |
| using | is_always_equal = std::true_type |
| C++11 type flag. More... | |
| using | pointer = Type * |
| using | propagate_on_container_move_assignment = std::true_type |
| C++11 type flag. More... | |
| using | reference = Type & |
| using | size_type = std::size_t |
| using | value_type = Type |
Public Member Functions | |
| PoolAllocator (Pool &pool) noexcept | |
| construct PoolAllocator with Pool object More... | |
| PoolAllocator (const PoolAllocator &) noexcept=default | |
| copy-constructor More... | |
| template<typename OtherType > | |
| PoolAllocator (const PoolAllocator< OtherType > &other) noexcept | |
| copy-constructor from a rebound allocator More... | |
| pointer | allocate (size_type n, const void *=nullptr) |
| void | deallocate (pointer p, size_type n) const noexcept |
| size_type | max_size () const noexcept |
| maximum size possible to allocate More... | |
| template<typename Other > | |
| bool | operator!= (const PoolAllocator< Other > &other) const noexcept |
| compare to another allocator of same type More... | |
| PoolAllocator & | operator= (const PoolAllocator &) noexcept=default |
| copy-assignment operator More... | |
| template<typename Other > | |
| bool | operator== (const PoolAllocator< Other > &other) const noexcept |
| compare to another allocator of same type More... | |
Public Member Functions inherited from AllocatorBase< Type > | |
| pointer | address (reference x) const noexcept |
| Returns the address of x. More... | |
| const_pointer | address (const_reference x) const noexcept |
| Returns the address of x. More... | |
| void | construct (pointer p, const_reference value) |
| Constructs an element object on the location pointed by p. More... | |
| template<typename SubType , typename... Args> | |
| void | construct (SubType *p, Args &&... args) |
| Constructs an element object on the location pointed by p. More... | |
| void | destroy (pointer p) const noexcept |
| Destroys in-place the object pointed by p. More... | |
| template<typename SubType > | |
| void | destroy (SubType *p) const noexcept |
| Destroys in-place the object pointed by p. More... | |
| size_type | max_size () const noexcept |
| Maximum size possible to allocate. More... | |
Public Attributes | |
| Pool * | pool_ |
| using const_pointer = const Type * |
| using const_reference = const Type& |
| using difference_type = std::ptrdiff_t |
| using is_always_equal = std::false_type |
| using value_type = Type |
|
inlineexplicitnoexcept |
construct PoolAllocator with Pool object
|
defaultnoexcept |
copy-constructor
|
inlinenoexcept |
copy-constructor from a rebound allocator
Definition at line 221 of file pool.hpp.
References Pool::operator=().
releases a block of storage previously allocated with member allocate and not yet released.
Definition at line 241 of file pool.hpp.
References PoolAllocator< Type >::deallocate().
Referenced by PoolAllocator< Type >::deallocate().
|
inlinenoexcept |
maximum size possible to allocate
Definition at line 228 of file pool.hpp.
References PoolAllocator< Type >::max_size().
Referenced by PoolAllocator< Type >::max_size().
|
inlinenoexcept |
|
defaultnoexcept |
copy-assignment operator
|
inlinenoexcept |
| Pool* pool_ |