Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for a snapshot of the master branch, built from commit 9fc5439165.
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