Exchange the states of two objects.
Declared in <bsltf_moveonlyalloctesttype.h>
void
swap(
MoveOnlyAllocTestType& a,
MoveOnlyAllocTestType& b);
Exchange the states of the specified a and b. Both a and b will be left in a moved-into state. No allocations shall occur (so no exceptions will be thrown) unless a and b have different allocators.
| Name | Description |
|---|---|
| a | first object to swap |
| b | second object to swap |