namespace std {
template<typename T, std::size_t N, typename Traits>
struct hash<sprout::basic_string<T, N, Traits> >;
}
function | definition |
---|---|
operator() | Equivalent to sprout::hash_range(v). |
#include <sprout/string.hpp>
using namespace sprout;
using type = string<8>;
SPROUT_STATIC_CONSTEXPR auto input = type("homuhomu");
SPROUT_STATIC_CONSTEXPR auto h = std::hash<type>()(input);
static_assert(h, "hash value generated from string.");