Home:

boost::urls::grammar::ci_hash

A case-insensitive hash function object for strings

Synopsis

Declared 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