libnick 2025.9.1
A cross-platform base for native Nickvision applications.
Loading...
Searching...
No Matches
Nickvision::Helpers::PairHash Class Reference

A hash value for std::pair. More...

#include <pairhash.h>

Public Member Functions

 PairHash () noexcept=default
 Constructs a PairHash.
 
template<class T1, class T2>
size_t operator() (const std::pair< T1, T2 > &p) const noexcept
 The call operator.
 

Detailed Description

A hash value for std::pair.

Constructor & Destructor Documentation

◆ PairHash()

Nickvision::Helpers::PairHash::PairHash ( )
defaultnoexcept

Constructs a PairHash.

Member Function Documentation

◆ operator()()

template<class T1, class T2>
size_t Nickvision::Helpers::PairHash::operator() ( const std::pair< T1, T2 > & p) const
inlinenoexcept

The call operator.

Parameters
pThe std::pair to determine a hash value for
Returns
The hash value of the std::pair

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