Drake
Drake C++ Documentation
hash< drake::Sha256 > Struct Template Reference

Detailed Description

template<>
struct std::hash< drake::Sha256 >

The STL container hash for Sha256 objects.

This implementation avoids using drake::hash_append for performance. The checksum should already be well-mixed, so we can just squash it down into the required size.

#include <drake/common/sha256.h>

Public Member Functions

size_t operator() (const drake::Sha256 &x) const noexcept
 

Member Function Documentation

◆ operator()()

size_t operator() ( const drake::Sha256 x) const
noexcept

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