Sunshine master
Self-hosted game stream host for Moonlight.
util::hash< T > Class Template Reference

Hash functor that hashes the raw bytes of trivially-copyable values. More...

#include <src/utility.h>

Public Types

using value_type = T
 Value type accepted by the hash functor.
 

Public Member Functions

std::size_t operator() (const value_type &value) const
 Hash a value by viewing its object representation as bytes.
 

Detailed Description

template<class T>
class util::hash< T >

Hash functor that hashes the raw bytes of trivially-copyable values.

Member Function Documentation

◆ operator()()

template<class T >
std::size_t util::hash< T >::operator() ( const value_type & value) const
inline

Hash a value by viewing its object representation as bytes.

Parameters
valueValue whose raw bytes are hashed.
Returns
Hash value for the byte representation.

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