Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions

bsl::allocator_traits< ALLOCATOR_TYPE >::rebind_alloc< ELEMENT_TYPE > Struct Template Reference

#include <bslma_allocatortraits.h>

List of all members.

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)

Detailed Description

template<class ALLOCATOR_TYPE>
template<class ELEMENT_TYPE>
struct bsl::allocator_traits< ALLOCATOR_TYPE >::rebind_alloc< ELEMENT_TYPE >

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


Member Typedef Documentation

template<class ALLOCATOR_TYPE>
template<class ELEMENT_TYPE >
typedef BloombergLP::bslma:: AllocatorTraits_RebindAlloc<ALLOCATOR_TYPE, ELEMENT_TYPE>::type bsl::allocator_traits< ALLOCATOR_TYPE >::rebind_alloc< ELEMENT_TYPE >::allocator_type

Constructor & Destructor Documentation

template<class ALLOCATOR_TYPE>
template<class ELEMENT_TYPE >
template<typename ARG >
bsl::allocator_traits< ALLOCATOR_TYPE >::rebind_alloc< ELEMENT_TYPE >::rebind_alloc ( const ARG &  allocatorArg  )  [inline]
Parameters:
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.

The documentation for this struct was generated from the following file: