BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlb::Variant_EqualityTestVisitor Struct Reference

#include <bdlb_variant.h>

Public Member Functions

 Variant_EqualityTestVisitor (const void *buffer)
 
template<class TYPE >
void operator() (const TYPE &value) const
 
void operator() (bslmf::Nil) const
 

Public Attributes

bool d_result
 
const void * d_buffer_p
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Variant_EqualityTestVisitor()

bdlb::Variant_EqualityTestVisitor::Variant_EqualityTestVisitor ( const void *  buffer)
inlineexplicit

Member Function Documentation

◆ operator()() [1/2]

void bdlb::Variant_EqualityTestVisitor::operator() ( bslmf::Nil  ) const
inline

◆ operator()() [2/2]

template<class TYPE >
void bdlb::Variant_EqualityTestVisitor::operator() ( const TYPE &  value) const
inline

Member Data Documentation

◆ d_buffer_p

const void* bdlb::Variant_EqualityTestVisitor::d_buffer_p

◆ d_result

bool bdlb::Variant_EqualityTestVisitor::d_result
mutable

The documentation for this struct was generated from the following file: