This visitor swaps the variant object data that it holds with another variant object data of parameterize TYPE.
Synopsis
Declared in <bdlb_variant.h>
struct Variant_SwapVisitor;
Description
It requires that the two variant objects being swapped contain data of the same type, and use the same allocator.
Member Functions
Name |
Description |
|
Create a swap visitor targeting the specified peer |
Swap the value of template parameter |
Data Members
Name |
Description |
Peer buffer used for swapping. |
Created with MrDocs