BloombergLP::bdlb::CaselessStringViewEqualTo

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.

Synopsis

Declared in <bdlb_caselessstringviewequalto.h>

struct CaselessStringViewEqualTo;

Type Aliases

NameDescription
first_argument_type Type of the first argument to the function-call operator.
is_transparent Type alias indicating this is a transparent hash functor.
result_type Type of the function-call operator's result.
second_argument_type Type of the second argument to the function-call operator.

Member Functions

NameDescription
operator() Return true if the specified lhs string view has the same (case insensitive) value as the specified rhs string view, and false otherwise.
operator BloombergLP::bslmf::NestedTraitDeclaration<CaselessStringViewEqualTo, is_trivially_default_constructible> Declare that this type is trivially copyable.