Drake
uhash< HashAlgorithm > Struct Template Reference

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

#include <common/hash.h>

Inheritance diagram for uhash< HashAlgorithm >:
[legend]

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

using result_type = typename HashAlgorithm::result_type

Member Function Documentation

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

Here is the call graph for this function:


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