Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

grammar::ci_hash

A case-insensitive hash function object for strings.

Synopsis

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

using ci_hash = see-below;
Description

The hash function is non-cryptographic and not hardened against algorithmic complexity attacks. This is a suitable hash function 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_equal, ci_less.

Convenience header <boost/url/grammar.hpp>


PrevUpHomeNext