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

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

#include "flat_set.hpp"

Public Member Functions

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

Detailed Description

template<class T, template< class ... > class Storage, class h>
struct std::hash< flat_set< T, Storage, h > >

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

Definition at line 209 of file flat_set.hpp.

Member Function Documentation

◆ operator()()

template<class T, template< class ... > class Storage, class h>
size_t std::hash< flat_set< T, Storage, h > >::operator() ( const flat_set< T, Storage > & key) const
inline

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

Parameters
keyThe set to hash.
Returns
Combined hash value.

Definition at line 215 of file flat_set.hpp.


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