Exchange the values of two nullable objects.
Declared in <bdlb_nullableallocatedvalue.h>
template<class TYPE>
void
swap(
NullableAllocatedValue<TYPE>& a,
NullableAllocatedValue<TYPE>& b);
Exchange the values of the specified a and b objects. This function provides the no-throw exception-safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise.
| Name | Description |
|---|---|
| a | first object to swap |
| b | second object to swap |