[#BloombergLP-bslma-AllocatorTraits_RebindAlloc-0a] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::AllocatorTraits_RebindAlloc :relfileprefix: ../../ :mrdocs: Metafunction that rebinds an allocator type to a different value type. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class U, class = void> struct AllocatorTraits_RebindAlloc; ---- == Description Should be `pointer_traits::rebind` of template above. == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/AllocatorTraits_RebindAlloc-0a/type.adoc[`type`] | Rebound allocator type obtained via `AllocatorTraits_RebindFront`. |=== == Specializations [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/AllocatorTraits_RebindAlloc-02.adoc[`AllocatorTraits_RebindAlloc<T, U, bsl::void_t<T::rebind<U>::other>>`] | Specialization for allocators that define a nested `rebind<U>::other`. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#