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

#include <bdlb_transparentequalto.h>

Public Types

typedef void is_transparent
 Type alias indicating this is a transparent comparator.
 

Public Member Functions

 TransparentEqualTo ()=default
 Create a TransparentEqualTo object.
 
 TransparentEqualTo (const TransparentEqualTo &original)=default
 
 ~TransparentEqualTo ()=default
 Destroy this object.
 
TransparentEqualTooperator= (const TransparentEqualTo &rhs)=default
 
template<class LHS , class RHS >
bool operator() (const LHS &lhs, const RHS &rhs) const
 

Detailed Description

This struct defines an equality of objects of different types, enabling them for use for heterogeneous comparison in the standard associative containers such as bsl::unordered_map. Note that this class is an empty POD type.

Member Typedef Documentation

◆ is_transparent

Constructor & Destructor Documentation

◆ TransparentEqualTo() [1/2]

bdlb::TransparentEqualTo::TransparentEqualTo ( )
default

◆ TransparentEqualTo() [2/2]

bdlb::TransparentEqualTo::TransparentEqualTo ( const TransparentEqualTo original)
default

Create a TransparentEqualTo object. Note that as TransparentEqualTo is an empty (stateless) type, this operation has no observable effect.

◆ ~TransparentEqualTo()

bdlb::TransparentEqualTo::~TransparentEqualTo ( )
default

Member Function Documentation

◆ operator()()

template<class LHS , class RHS >
bool bdlb::TransparentEqualTo::operator() ( const LHS &  lhs,
const RHS &  rhs 
) const
inline

Return true if the specified lhs is equal to the specified rhs and false otherwise.

◆ operator=()

TransparentEqualTo & bdlb::TransparentEqualTo::operator= ( const TransparentEqualTo rhs)
default

Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object. Note that as TransparentEqualTo is an empty (stateless) type, this operation has no observable effect.


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