Exchange the states of two objects.

Synopsis

Declared in <bsltf_moveonlyalloctesttype.h>

Description

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.

Parameters

Name

Description

a

first object to swap

b

second object to swap

Created with MrDocs