#include <stdcontainerma.hpp>
Base struct for types StdContMA and StdContMARecycling containing entities to satisfy requirements for being a std::allocator
.
T | The type of objects to be allocated. |
Definition at line 30 of file stdcontainerma.hpp.
Public Types | |
using | const_pointer = const T * |
using | const_reference = const T & |
using | difference_type = ptrdiff_t |
Type definition as required by C++ library standards. | |
using | is_always_equal = std::false_type |
Type definition as required by C++ library standards. | |
using | pointer = T * |
using | reference = T & |
using | size_type = size_t |
Type definition as required by C++ library standards. | |
using | value_type = T |
Type definition as required by C++ library standards. | |
Public Methods | |
const_pointer | address (const_reference x) const noexcept |
pointer | address (reference x) const noexcept |
template<typename U , typename... Args> | |
void | construct (U *p, Args &&... args) |
template<typename U > | |
void | destroy (U *p) |
size_t | max_size () const noexcept |
using const_pointer = const T* |
Type definition as required by C++ library standards. Available if ALIB_CPPVER <= 14.
Definition at line 45 of file stdcontainerma.hpp.
using const_reference = const T& |
Type definition as required by C++ library standards. Available if ALIB_CPPVER <= 14.
Definition at line 49 of file stdcontainerma.hpp.
using pointer = T* |
Type definition as required by C++ library standards. Available if ALIB_CPPVER <= 14.
Definition at line 43 of file stdcontainerma.hpp.
using reference = T& |
Type definition as required by C++ library standards. Available if ALIB_CPPVER <= 14.
Definition at line 47 of file stdcontainerma.hpp.
|
inlinenoexcept |
Returns the address of x even in presence of overloaded operator&
.
x | The object to get the address for. |
operator&
. Definition at line 117 of file stdcontainerma.hpp.
Returns the address of x even in presence of overloaded operator&
.
x | The object to get the address for. |
operator&
. Definition at line 107 of file stdcontainerma.hpp.
|
inline |
Constructs an object of type T in allocated uninitialized storage pointed to by p, using placement-new.
Note: Available only if ALIB_CPPVER <= 14.
U | The type to construct. Deduced by the compiler from parameter p. |
Args | Variadic argument types. |
p | Pointer to the object to construct. |
args | The arguments forward to the constructor of p. |
Definition at line 82 of file stdcontainerma.hpp.
|
inline |
Constructs an object of type T in allocated uninitialized storage pointed to by p, using placement-new.
Note: Available only if ALIB_CPPVER <= 14.
U | The type to destroy. Deduced by the compiler from parameter p. |
p | Pointer to the object to destruct. |
Definition at line 97 of file stdcontainerma.hpp.
|
inlinenoexcept |
The possible allocation size. Note: Available only if ALIB_CPPVER <= 14.
Definition at line 62 of file stdcontainerma.hpp.