A toolkit for working with phylogenetic data.
v0.19.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
hash< genesis::utils::SHA1::DigestType > Struct Template Reference

#include <genesis/utils/tools/sha1.hpp>

Detailed Description

template<>
struct std::hash< genesis::utils::SHA1::DigestType >

Hash function for SHA1 digestes.

Basically, we re-hash from 160 bit to 64 bit. This is ugly, but currently faster to implement than a custom container that uses the full hash width. Might work on this in the future.

Definition at line 176 of file sha1.hpp.

Public Member Functions

result_type operator() (argument_type const &s) const
 

Public Types

using argument_type = genesis::utils::SHA1::DigestType
 
using result_type = std::size_t
 

Member Function Documentation

result_type operator() ( argument_type const &  s) const
inline

Definition at line 181 of file sha1.hpp.

Member Typedef Documentation

Definition at line 178 of file sha1.hpp.

using result_type = std::size_t

Definition at line 179 of file sha1.hpp.


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