swap overloads
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...
| Name | Description |
|---|---|
| a | first object to swap |
| b | second object to swap |
| lhs | left-hand operand |
| rhs | right-hand operand |