Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

grammar::ci_equal

A case-insensitive equals predicate for strings.

Synopsis

Defined in header <boost/url/grammar/ci_string.hpp>

using ci_equal = see-below;
Description

The function object returns true when two strings are equal, ignoring case. This is a suitable equality predicate for unordered containers. The function is defined only for strings containing low-ASCII characters.

Example
boost::unordered_map< std::string, std::string, ci_hash, ci_equal > m1;

std::unordered_map  < std::string, std::string, ci_hash, ci_equal > m2; // (since C++20)
See Also

ci_hash, ci_less.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext