Drake
uhash< HashAlgorithm > Struct Template Reference

A hashing functor, somewhat like std::hash. More...

#include <drake/common/hash.h>

Public Types

using result_type = typename HashAlgorithm::result_type
 

Public Member Functions

template<class T >
result_type operator() (const T &item) const noexcept
 

Detailed Description

template<class HashAlgorithm>
struct drake::uhash< HashAlgorithm >

A hashing functor, somewhat like std::hash.

Given an item of type T, applies hash_append generic hashing to it, directing the bytes to append into the given HashAlgorithm, and then finally returning the algorithm's result.

Member Typedef Documentation

◆ result_type

using result_type = typename HashAlgorithm::result_type

Member Function Documentation

◆ operator()()

result_type operator() ( const T &  item) const
noexcept

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