ProvSQL C/C++ API
Adding support for provenance and uncertainty management to PostgreSQL databases
Loading...
Searching...
No Matches
std::hash< flat_map< K, V, Storage > > Struct Template Reference

std::hash specialisation for flat_map, enabling use as an unordered container key. More...

#include "flat_map.hpp"

Public Member Functions

size_t operator() (const flat_map< K, V, Storage > &key) const
 Compute the hash of a flat_map by XOR-folding element hashes.

Detailed Description

template<class K, class V, template< class... > class Storage>
struct std::hash< flat_map< K, V, Storage > >

std::hash specialisation for flat_map, enabling use as an unordered container key.

Definition at line 224 of file flat_map.hpp.

Member Function Documentation

◆ operator()()

template<class K, class V, template< class... > class Storage>
size_t std::hash< flat_map< K, V, Storage > >::operator() ( const flat_map< K, V, Storage > & key) const
inline

Compute the hash of a flat_map by XOR-folding element hashes.

Parameters
keyThe map to hash.
Returns
Combined hash value.

Definition at line 230 of file flat_map.hpp.


The documentation for this struct was generated from the following file: