BloombergLP::bslma::AllocatorTraits_RebindAlloc

Metafunction that rebinds an allocator type to a different value type.

Synopsis

Declared in <bslma_allocatortraits.h>

template<
    class T,
    class U,
    class = void>
struct AllocatorTraits_RebindAlloc;

Description

Should be pointer_traits::rebind of template above.

Type Aliases

NameDescription
type Rebound allocator type obtained via AllocatorTraits_RebindFront.

Specializations

NameDescription
AllocatorTraits_RebindAlloc<T, U, bsl::void_t<T::rebind<U>::other>> Specialization for allocators that define a nested rebind<U>::other.