Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
strings::AsciiCaseInsensitiveLess Struct Reference

#include <case.h>

Public Types

using is_transparent = void
 Enable heterogeneous lookup.
 

Public Member Functions

bool operator() (absl::string_view s1, absl::string_view s2) const
 

Detailed Description

AsciiCaseInsensitiveLess()

Performs a case-insensitive less-than absl::string_view comparison. This function object is useful as a template parameter for set/map of absl::string_view-compatible types, if uniqueness of keys is case-insensitive. Can be used for heterogeneous lookups in associative containers. Example:

absl::btree_map<std::string, std::string, AsciiCaseInsensitiveLess> map; absl::string_view key = ...; auto it = map.find(key);

Definition at line 83 of file case.h.

Member Typedef Documentation

◆ is_transparent

Enable heterogeneous lookup.

Definition at line 85 of file case.h.

Member Function Documentation

◆ operator()()

bool strings::AsciiCaseInsensitiveLess::operator() ( absl::string_view s1,
absl::string_view s2 ) const
inline

Definition at line 86 of file case.h.


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