BloombergLP::bdlb::Variant_EqualityTestVisitor

This visitor, when invoked as a non-modifiable function object on an instance of some template parameter TYPE, tests the equality of the value of that instance and of another instance held in a buffer specified at construction of this visitor, and stores the result into its publicly accessible d_result member.

Synopsis

Declared in <bdlb_variant.h>

struct Variant_EqualityTestVisitor;

Member Functions

NameDescription
Variant_EqualityTestVisitor [constructor]Create an equality-test visitor comparing against the value in the specified buffer.
operator() Function call operators

Data Members

NameDescription
d_buffer_p Peer buffer holding the value to compare against (held, not owned).
d_result Stores the result of the equality comparison.