BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlb::CaselessStringViewLess Struct Reference

#include <bdlb_caselessstringviewless.h>

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
Note that this class is an empty POD type.

See bdlb_caselessstringviewless

Public Types

typedef bsl::string_view first_argument_type
 
typedef bsl::string_view second_argument_type
 
typedef bool result_type
 
typedef void is_transparent
 

Public Member Functions

 BSLMF_NESTED_TRAIT_DECLARATION (CaselessStringViewLess, bsl::is_trivially_copyable)
 
 BSLMF_NESTED_TRAIT_DECLARATION (CaselessStringViewLess, bsl::is_trivially_default_constructible)
 
 CaselessStringViewLess ()=default
 
 CaselessStringViewLess (const CaselessStringViewLess &original)=default
 
 ~CaselessStringViewLess ()=default
 
CaselessStringViewLessoperator= (const CaselessStringViewLess &rhs)=default
 
bool operator() (bsl::string_view lhs, bsl::string_view rhs) const
 

Member Typedef Documentation

◆ first_argument_type

◆ is_transparent

Type alias indicating this is a transparent hash functor.

◆ result_type

◆ second_argument_type

Constructor & Destructor Documentation

◆ CaselessStringViewLess() [1/2]

bdlb::CaselessStringViewLess::CaselessStringViewLess ( )
default

Create a CaselessStringViewLess object.

◆ CaselessStringViewLess() [2/2]

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

Create a CaselessStringViewLess object.

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

◆ ~CaselessStringViewLess()

bdlb::CaselessStringViewLess::~CaselessStringViewLess ( )
default

Destroy this object.

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
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: