swap overloads
Synopses
Declared in <bsltf_degeneratefunctor.h>
Exchange the states of two objects.
void
swap(
MoveOnlyAllocTestType& a,
MoveOnlyAllocTestType& b);
Exchange the states of the specified a and b.
void
swap(
WellBehavedMoveOnlyAllocTestType& a,
WellBehavedMoveOnlyAllocTestType& b);
Exchange the values of the specified lhs and rhs objects.
template<class FUNCTOR>
void
swap(
DegenerateFunctor<FUNCTOR, true>& lhs,
DegenerateFunctor<FUNCTOR, true>& rhs);
Parameters
Name |
Description |
a |
first object to swap |
b |
second object to swap |
lhs |
left‐hand operand |
rhs |
right‐hand operand |
Created with MrDocs