Drake
Drake C++ Documentation
Loading...
Searching...
No Matches
uhash< HashAlgorithm > Struct Template Reference

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.

#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

Member Typedef Documentation

◆ result_type

template<class HashAlgorithm>
using result_type = typename HashAlgorithm::result_type

Member Function Documentation

◆ operator()()

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

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