#include <bslma_stdallocator.h>
List of all members.
template<class TYPE>
template<class ELEMENT_TYPE>
struct bsl::allocator_traits< allocator< TYPE > >::rebind_alloc< ELEMENT_TYPE >
Member Typedef Documentation
Constructor & Destructor Documentation
template<class TYPE >
template<class ELEMENT_TYPE >
Member Function Documentation
bsl::allocator< ELEMENT_TYPE >::BSLMF_NESTED_TRAIT_DECLARATION |
( |
allocator< ELEMENT_TYPE > |
, |
|
|
BloombergLP::bslmf::IsBitwiseMoveable |
| |
|
) |
| | [inherited] |
bsl::allocator< ELEMENT_TYPE >::BSLMF_NESTED_TRAIT_DECLARATION |
( |
allocator< ELEMENT_TYPE > |
, |
|
|
BloombergLP::bslmf::IsBitwiseEqualityComparable |
| |
|
) |
| | [inherited] |
Declare nested type traits for this class.
Allocate enough (properly aligned) space for the specified n
objects of (template parameter) TYPE
by calling allocate
on the mechanism object. The optionally specified hint
argument is ignored by this allocator type. The behavior is undefined unless n <= max_size()
.
Return memory previously allocated with allocate
to the underlying mechanism object by calling deallocate
on the mechanism object with the specified p
. The optionally specified n
argument is ignored by this allocator type.
void bsl::allocator< ELEMENT_TYPE >::construct |
( |
ELEMENT_TYPE * |
address, |
|
|
Args &&... |
arguments | |
|
) |
| | [inherited] |
Construct an object of (template parameter) TYPE
, by forwarding the specified (variable number of) arguments
to the corresponding constructor of ELEMENT_TYPE
, at the specified uninitialized memory address
. The behavior is undefined unless address
is properly aligned for objects of ELEMENT_TYPE
.
void bsl::allocator< ELEMENT_TYPE >::destroy |
( |
ELEMENT_TYPE * |
address |
) |
[inherited] |
Call the TYPE
destructor for the object pointed to by the specified p
. Do not directly deallocate any memory.
Return the address of the object referred to by the specified x
, even if the (template parameter) TYPE
overloads the unary operator&
.
Return the address of the object referred to by the specified x
, even if the (template parameter) TYPE
overloads the unary operator&
.
Return the maximum number of elements of (template parameter) TYPE
that can be allocated using this allocator. Note that there is no guarantee that attempts at allocating fewer elements than the value returned by max_size
will not throw.
BloombergLP::bslma::Allocator* bsl::allocator< ELEMENT_TYPE >::mechanism |
( |
|
) |
const [inherited] |
Return a pointer to the mechanism object to which this proxy forwards allocation and deallocation calls.
allocator<ELEMENT_TYPE > bsl::allocator< ELEMENT_TYPE >::select_on_container_copy_construction |
( |
|
) |
const [inherited] |
The documentation for this struct was generated from the following file: