Use the allocator's nested propagate_on_container_swap when defined.

Synopsis

Declared in <bslma_allocatortraits.h>

template<class ALLOC>
struct AllocatorTraits_PropOnSwap<ALLOC, true>
    : ALLOC::propagate_on_container_swap

Description

This struct template sets the boolean type for the attribute named propagate_on_container_swap to the nested type alias in the given (template parameter) ALLOCATOR_TYPE if ALLOCATOR_TYPE defines such an alias (i.e., false == AllocatorTraits_HasPropOnSwap<ALLOCATOR_TYPE>::value).

Base Classes

Name

Description

ALLOC::propagate_on_container_swap

Created with MrDocs