BDE 4.14.0 Production release
|
#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. | |
CaselessStringViewEqualTo & | operator= (const CaselessStringViewEqualTo &)=default |
bool | operator() (bsl::string_view lhs, bsl::string_view rhs) const |
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.
typedef void bdlb::CaselessStringViewEqualTo::is_transparent |
typedef bool bdlb::CaselessStringViewEqualTo::result_type |
|
default |
|
default |
Create a CaselessStringViewEqualTo
object. Note that as CaselessStringViewEqualTo
is an empty (stateless) type, this operation has no observable effect.
|
default |
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. Note that as CaselessStringViewEqualTo
is an empty (stateless) type, this operation has no observable effect.