Sunshine0.0.5917
Sunshine 0.0.5917
Self-hosted game stream host for Moonlight.
Loading...
Searching...
No Matches
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 copy of the object's representation using the standard string-view hash.

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 copy of the object's representation using the standard string-view hash.

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: