Exchange the states of the specified a and b.
Declared in <bsltf_wellbehavedmoveonlyalloctesttype.h>
void
swap(
WellBehavedMoveOnlyAllocTestType& a,
WellBehavedMoveOnlyAllocTestType& b);
If the allocators match, both a and b will be left in a moved-into state, otherwise, both will not. If a and b are the same object, this function will have no effect. No allocations shall occur (so no exceptions will be thrown) unless a and b have different allocators.
| Name | Description |
|---|---|
| a | first object to exchange |
| b | second object to exchange |