BloombergLP::bsltf::swap

swap overloads

Synopses

Declared in <bsltf_degeneratefunctor.h>

Exchange the states of two objects.

void
swap(
    MoveOnlyAllocTestType& a,
    MoveOnlyAllocTestType& b);
» more...

Exchange the states of the specified a and b.

void
swap(
    WellBehavedMoveOnlyAllocTestType& a,
    WellBehavedMoveOnlyAllocTestType& b);
» more...

Exchange the values of the specified lhs and rhs objects.

template<class FUNCTOR>
void
swap(
    DegenerateFunctor<FUNCTOR, true>& lhs,
    DegenerateFunctor<FUNCTOR, true>& rhs);
» more...

Parameters

NameDescription
afirst object to swap
bsecond object to swap
lhsleft-hand operand
rhsright-hand operand