opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Classes | Namespaces | Concepts | Functions
hash_helpers.h File Reference
#include <concepts>
#include <cstddef>
#include <functional>
#include <iterator>
#include <utility>
Include dependency graph for hash_helpers.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  osc::Hasher< std::pair< T1, T2 > >
 

Namespaces

namespace  osc
 

Concepts

concept  osc::Hashable
 

Functions

template<Hashable T>
size_t osc::hash_combine (size_t seed, const T &v) noexcept(noexcept(std::hash< T >{}(v)))
 
template<Hashable T>
size_t osc::hash_of (const T &v) noexcept(noexcept(std::hash< T >{}(v)))
 
template<Hashable T, Hashable... Ts>
size_t osc::hash_of (const T &v, const Ts &... vs)
 
template<typename Range >
size_t osc::hash_range (const Range &range) noexcept(noexcept(hash_combine(0, *std::ranges::begin(range))))