swap overloads

Synopses

Declared in <bslma_allocatorutil.h>

Conditionally swap the values at pa and pb based on allowed.

template<class t_TYPE>
static
void
swap(
    t_TYPE* pa,
    t_TYPE* pb,
    bsl::false_type allowed);

Conditionally swap the values at pa and pb when allowed is true_type.

template<class t_TYPE>
static
void
swap(
    t_TYPE* pa,
    t_TYPE* pb,
    bsl::true_type allowed);

Parameters

Name

Description

pa

address of the first object to swap

pb

address of the second object to swap

allowed

whether swapping is permitted

Created with MrDocs