Quick Links: |
#include <bslma_allocatortraits.h>
Public Types | |
typedef BloombergLP::bslma::AllocatorTraits_RebindAlloc < ALLOCATOR_TYPE, ELEMENT_TYPE > ::type | allocator_type |
Public Member Functions | |
template<typename ARG > | |
rebind_alloc (const ARG &allocatorArg) |
Note that this class attempts to emulate an alias template, but is not complete. In general, code that must support C++03 should use rebind_traits<ELEMENT_TYPE>allocator_type
instead of rebind_alloc<ELEMENT_TYPE>
because that nested typedef is the preferred actual allocator type and not a subclass of the desired type.
See Component bslma_allocatortraits
typedef BloombergLP::bslma:: AllocatorTraits_RebindAlloc<ALLOCATOR_TYPE, ELEMENT_TYPE>::type bsl::allocator_traits< ALLOCATOR_TYPE >::rebind_alloc< ELEMENT_TYPE >::allocator_type |
bsl::allocator_traits< ALLOCATOR_TYPE >::rebind_alloc< ELEMENT_TYPE >::rebind_alloc | ( | const ARG & | allocatorArg | ) | [inline] |
allocatorArg | Convert from anything that can be used to cosntruct the base type. This might be better if SFINAE-ed out using is_convertible , but stressing older compilers more seems unwise. |