37 using alphabet_type = char;
67 template <typename alph1_t, typename alph2_t>
68 requires
std::equality_comparable_with<
std::remove_reference_t<alph1_t>,
std::remove_reference_t<alph2_t>>
69 constexpr
score_type score(alph1_t const alph1, alph2_t const alph2) const noexcept
71 return alph1 == alph2 ? 0 : -1;
A scoring scheme that assigns a score of 0 to matching letters and -1 to mismatching letters.
Definition hamming_scoring_scheme.hpp:33
int32_t score_type
The underlying score type.
Definition hamming_scoring_scheme.hpp:41
constexpr score_type score(alph1_t const alph1, alph2_t const alph2) const noexcept
Returns the score of two letters.
Definition hamming_scoring_scheme.hpp:69
constexpr bool operator==(hamming_scoring_scheme const &) const noexcept
Always true.
Definition hamming_scoring_scheme.hpp:79
constexpr bool operator!=(hamming_scoring_scheme const &) const noexcept
Always false.
Definition hamming_scoring_scheme.hpp:85
hamming_scoring_scheme() noexcept=default
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
SeqAn specific customisations in the standard namespace.