PHash.h File Reference

Detailed Description

functions to compute hash values for PString and PGuid to be able to use them as keys in std::unordered_map and boost::unordered_map.

Definition in file PHash.h.

#include <PGuid.h>
#include <PString.h>
Include dependency graph for PHash.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  std::hash< papillon::PGuid >
 Computes hash value for PGuid objects (compatible with std::unordered_map). More...
 
struct  std::hash< papillon::PString >
 Computes hash value for PString objects (compatible with std::unordered_map). More...
 

Functions

PAPILLON_BEGIN_NAMESPACE std::size_t hash_value (papillon::PGuid const &guid)
 Computes hash value for PGuid objects (compatible with boost::unordered_map). More...
 
std::size_t hash_value (papillon::PString const &s)
 Computes hash value for PString objects (compatible with boost::unordered_map). More...
 

Function Documentation

◆ hash_value() [1/2]

PAPILLON_BEGIN_NAMESPACE std::size_t hash_value ( papillon::PGuid const &  guid)
inline

Computes hash value for PGuid objects (compatible with boost::unordered_map).

Definition at line 25 of file PHash.h.

◆ hash_value() [2/2]

std::size_t hash_value ( papillon::PString const &  s)
inline

Computes hash value for PString objects (compatible with boost::unordered_map).

Definition at line 33 of file PHash.h.