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

Name

Description

type

Rebound allocator type obtained via AllocatorTraits_RebindFront.

Specializations

Name

Description

AllocatorTraits_RebindAlloc<T, U, bsl::void_t<T::rebind<U>::other>>

Specialization for allocators that define a nested rebind<U>::other.

Created with MrDocs