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 an old version of boost. Click here for the latest Boost documentation.
PrevUpHomeNext

Function hash_value

boost::pfr::hash_value — Hashes value using its own std::hash specialization; if no std::hash specialization avalable returns boost::pfr::hash_fields (value).

Synopsis

// In header: <boost/pfr/ops.hpp>


template<typename T> unspecified hash_value(const T & value);
template<typename T> unspecified hash_value(const T & value);

Description

Returns:

std::size_t with hash of the value


PrevUpHomeNext