Its member type other
is the equivalent allocator type to allocate elements of type T
More...
Public Types | |
typedef allocator< U > | other |
other matches T | |
typedef allocator< U > | other |
other matches T | |
typedef const void | value_type |
Type of object this allocator is creating memory. | |
typedef uintptr_t | size_type |
Quantities of elements. | |
typedef intptr_t | difference_type |
Difference between pointers. | |
typedef const void * | pointer |
Pointer to element. | |
typedef const const void * | const_pointer |
Pointer to constant element. | |
typedef const void & | reference |
Reference to element. | |
typedef const const void & | const_reference |
Reference to constant element. | |
typedef true_type | propagate_on_container_move_assignment |
Propagate on move assignment. | |
typedef true_type | propagate_on_container_copy_assignment |
Copy the allocator when copy assigned. | |
typedef true_type | propagate_on_container_swap |
Swap allocators on swap assignment. | |
typedef true_type | is_always_equal |
This allocator matches any other allocator type. | |
Public Member Functions | |
constexpr | allocator () noexcept=default |
Default constructor. | |
constexpr | allocator (const allocator &) noexcept=default |
Copy constructor. | |
constexpr | allocator (allocator &&) noexcept=default |
Move constructor. | |
allocator (const allocator< U > &) | |
Allocator that crosses types. | |
~allocator ()=default | |
Default destructor. | |
allocator & | operator= (allocator &&) noexcept=default |
Assignment move constructor. | |
pointer | address (reference x) noexcept |
Returns the address of x. | |
const_pointer | address (const_reference x) const noexcept |
Returns the const address of x. | |
const void * | allocate (uintptr_t n) noexcept |
Allocate memory for n chunks of data. | |
void | deallocate (pointer p, size_type) noexcept |
Free memory allocated. | |
uintptr_t | max_size () const noexcept |
Maximum size possible to allocate. | |
void | construct (pointer p) |
Default constructs an object. | |
void | destroy (pointer p) |
Destroys the contents of an object. | |
Its member type other
is the equivalent allocator type to allocate elements of type T
typedef const const void* Burger::allocator< const void >::const_pointer |
Pointer to constant element.
typedef const const void& Burger::allocator< const void >::const_reference |
Reference to constant element.
typedef intptr_t Burger::allocator< const void >::difference_type |
Difference between pointers.
typedef true_type Burger::allocator< const void >::is_always_equal |
This allocator matches any other allocator type.
typedef allocator<U> Burger::allocator< const void >::rebind< U >::other |
other
matches T
typedef allocator<U> Burger::allocator< const void >::rebind::other |
other
matches T
typedef const void* Burger::allocator< const void >::pointer |
Pointer to element.
typedef true_type Burger::allocator< const void >::propagate_on_container_copy_assignment |
Copy the allocator when copy assigned.
typedef true_type Burger::allocator< const void >::propagate_on_container_move_assignment |
Propagate on move assignment.
typedef true_type Burger::allocator< const void >::propagate_on_container_swap |
Swap allocators on swap assignment.
typedef const void& Burger::allocator< const void >::reference |
Reference to element.
typedef uintptr_t Burger::allocator< const void >::size_type |
Quantities of elements.
typedef const void Burger::allocator< const void >::value_type |
Type of object this allocator is creating memory.
|
default |
Default destructor.
|
inlinenoexcept |
Returns the const address of x.
|
inlinenoexcept |
Returns the address of x.
|
inlinenoexcept |
Allocate memory for n chunks of data.
n | Number of elements to allocate |
|
constexprdefaultnoexcept |
Default constructor.
|
constexprdefaultnoexcept |
Move constructor.
|
constexprdefaultnoexcept |
Copy constructor.
|
inline |
Allocator that crosses types.
Since this allocator can share pools, this exists and does nothing.
|
inline |
Default constructs an object.
|
inlinenoexcept |
Free memory allocated.
p | Pointer to memory to release |
|
inline |
Destroys the contents of an object.
|
inlinenoexcept |
Maximum size possible to allocate.
Returns the maximum number of elements, each of member type value_type (an alias of allocator's template parameter) that could potentially be allocated by a call to member allocate.
|
defaultnoexcept |
Assignment move constructor.