|
BDE 4.39.x Production Release
|
#include <bdlb_caselessstringviewequalto.h>
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.
class is an empty POD type.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 (CaselessStringViewEqualTo, bsl::is_trivially_copyable) BSLMF_NESTED_TRAIT_DECLARATION(CaselessStringViewEqualTo | |
| bsl::is_trivially_default_constructible | CaselessStringViewEqualTo ()=default |
| CaselessStringViewEqualTo (const CaselessStringViewEqualTo &original)=default | |
| ~CaselessStringViewEqualTo ()=default | |
| CaselessStringViewEqualTo & | operator= (const CaselessStringViewEqualTo &)=default |
| bool | operator() (bsl::string_view lhs, bsl::string_view rhs) const |
| typedef void bdlb::CaselessStringViewEqualTo::is_transparent |
Type alias indicating this is a transparent hash functor.
| typedef bool bdlb::CaselessStringViewEqualTo::result_type |
|
default |
Create a CaselessStringViewEqualTo object.
|
default |
Create a CaselessStringViewEqualTo object.
CaselessStringViewEqualTo is an empty (stateless) type, this operation has no observable effect.
|
default |
Destroy this object.
| bdlb::CaselessStringViewEqualTo::BSLMF_NESTED_TRAIT_DECLARATION | ( | CaselessStringViewEqualTo | , |
| bsl::is_trivially_copyable | |||
| ) |
|
inline |
Return true if the specified lhs string view has the same (case insensitive) value as the specified rhs string view, and false otherwise.
|
default |
Assign to this object the value of the specified rhs object, and return a reference providing modifiable access to this object.
CaselessStringViewEqualTo is an empty (stateless) type, this operation has no observable effect.