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

#include <bdlb_caselessstringviewless.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 (CaselessStringViewLess, bsl::is_trivially_copyable)
 
 BSLMF_NESTED_TRAIT_DECLARATION (CaselessStringViewLess, bsl::is_trivially_default_constructible)
 
 CaselessStringViewLess ()=default
 Create a CaselessStringViewLess object.
 
 CaselessStringViewLess (const CaselessStringViewLess &original)=default
 
 ~CaselessStringViewLess ()=default
 Destroy this object.
 
CaselessStringViewLessoperator= (const CaselessStringViewLess &rhs)=default
 
bool operator() (bsl::string_view lhs, bsl::string_view rhs) const
 

Detailed Description

This struct defines an ordering on string views, enabling them for use as keys in the standard associative containers such as bsl::map and bsl::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

◆ CaselessStringViewLess() [1/2]

bdlb::CaselessStringViewLess::CaselessStringViewLess ( )
default

◆ CaselessStringViewLess() [2/2]

bdlb::CaselessStringViewLess::CaselessStringViewLess ( const CaselessStringViewLess original)
default

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

◆ ~CaselessStringViewLess()

bdlb::CaselessStringViewLess::~CaselessStringViewLess ( )
default

Member Function Documentation

◆ BSLMF_NESTED_TRAIT_DECLARATION() [1/2]

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

◆ BSLMF_NESTED_TRAIT_DECLARATION() [2/2]

bdlb::CaselessStringViewLess::BSLMF_NESTED_TRAIT_DECLARATION ( CaselessStringViewLess  ,
bsl::is_trivially_default_constructible   
)

◆ operator()()

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

Return true if the specified lhs is lexicographically ordered before the specified rhs, and false otherwise.

◆ operator=()

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


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