A library for working with phylogenetic and population genetic data.
hash< genesis::utils::SHA1::DigestType > Struct Reference

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

Detailed Description

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 219 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

◆ operator()()

result_type operator() ( argument_type const &  s) const

Definition at line 224 of file sha1.hpp.

Member Typedef Documentation

◆ argument_type

Definition at line 221 of file sha1.hpp.

◆ result_type

using result_type = std::size_t

Definition at line 222 of file sha1.hpp.

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