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

#include <bdlb_caselessstringviewequalto.h>

Public Types

typedef bsl::string_view first_argument_type
 
typedef bsl::string_view second_argument_type
 
typedef bool result_type
 
typedef void is_transparent
 Type alias indicating this is a transparent hash functor.
 

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (CaselessStringViewEqualTo, bsl::is_trivially_copyable) BSLMF_NESTED_TRAIT_DECLARATION(CaselessStringViewEqualTo
 
bsl::is_trivially_default_constructible CaselessStringViewEqualTo ()=default
 Create a CaselessStringViewEqualTo object.
 
 CaselessStringViewEqualTo (const CaselessStringViewEqualTo &original)=default
 
 ~CaselessStringViewEqualTo ()=default
 Destroy this object.
 
CaselessStringViewEqualTooperator= (const CaselessStringViewEqualTo &)=default
 
bool operator() (bsl::string_view lhs, bsl::string_view rhs) const
 

Detailed Description

This struct defines a case-insensitive equality comparison functor on string views, enabling them for use as keys in the standard unordered associative containers such as bsl::unordered_map and bsl::unordered_set. Note that this class is an empty POD type.

Member Typedef Documentation

◆ first_argument_type

◆ is_transparent

◆ result_type

◆ second_argument_type

Constructor & Destructor Documentation

◆ CaselessStringViewEqualTo() [1/2]

bsl::is_trivially_default_constructible bdlb::CaselessStringViewEqualTo::CaselessStringViewEqualTo ( )
default

◆ CaselessStringViewEqualTo() [2/2]

bdlb::CaselessStringViewEqualTo::CaselessStringViewEqualTo ( const CaselessStringViewEqualTo original)
default

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

◆ ~CaselessStringViewEqualTo()

bdlb::CaselessStringViewEqualTo::~CaselessStringViewEqualTo ( )
default

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION()

bdlb::CaselessStringViewEqualTo::BSLMF_NESTED_TRAIT_DECLARATION ( CaselessStringViewEqualTo  ,
bsl::is_trivially_copyable   
)

◆ operator()()

bool bdlb::CaselessStringViewEqualTo::operator() ( bsl::string_view  lhs,
bsl::string_view  rhs 
) const
inline

Return true if the specified lhs string view has the same (case insensitive) value as the specified rhs string view, and false otherwise.

◆ operator=()

CaselessStringViewEqualTo & bdlb::CaselessStringViewEqualTo::operator= ( const CaselessStringViewEqualTo )
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 CaselessStringViewEqualTo is an empty (stateless) type, this operation has no observable effect.


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