BloombergLP::bslma::AllocatorTraits_PropOnSwap

Default propagate_on_container_swap to false_type when undefined.

Synopsis

Declared in <bslma_allocatortraits.h>

template<
    class ALLOC,
    bool = AllocatorTraits_HasPropOnSwap<ALLOC>::value>
struct AllocatorTraits_PropOnSwap
    : bsl::false_type

Description

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

Base Classes

NameDescription
bsl::false_typeMetafunction representing the boolean constant false.

Specializations

NameDescription
AllocatorTraits_PropOnSwap<ALLOC, true> Use the allocator's nested propagate_on_container_swap when defined.