BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
std::hash< urng_t > Struct Template Reference

Struct for hashing a range of characters. More...

#include <bio/ranges/hash.hpp>

Public Member Functions

template<ranges::input_range urng2_t>
requires bio::alphabet::semialphabet<std::ranges::range_reference_t<urng2_t>>
size_t operator() (urng2_t &&range) const noexcept
 Compute the hash for a range of characters.
 

Detailed Description

template<ranges::input_range urng_t>
requires bio::alphabet::semialphabet<std::ranges::range_reference_t<urng_t>>
struct std::hash< urng_t >

Struct for hashing a range of characters.

Template Parameters
urng_tThe type of the range; Must model std::ranges::input_range and the reference type of the range of the range must model bio::alphabet::semialphabet.

Member Function Documentation

◆ operator()()

template<ranges::input_range urng_t>
template<ranges::input_range urng2_t>
requires bio::alphabet::semialphabet<std::ranges::range_reference_t<urng2_t>>
size_t std::hash< urng_t >::operator() ( urng2_t &&  range) const
inlinenoexcept

Compute the hash for a range of characters.

Template Parameters
urng2_tThe same as urng_t (+- cvref); used to get forwarding reference in the interface.
Parameters
[in]rangeThe input range to process. Must model std::ranges::input_range and the reference type of the range of the range must model bio::alphabet::semialphabet.
Returns
size_t.

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