65inline constexpr auto to_phred = []<
typename alph_t>(alph_t
const a)
73 return tag_invoke(custom::to_phred{}, a);
80template <
typename alphabet_type>
133 } -> std::same_as<alph_t &>;
137 return tag_invoke(custom::assign_phred_to{}, p, a);
Core alphabet concept and free function/type trait wrappers.
The generic alphabet concept that covers most data types used in ranges.
Definition: concept.hpp:643
A concept that indicates whether an alphabet represents quality scores.
Definition: concept.hpp:171
Refines bio::alphabet::alphabet and adds assignability.
Definition: concept.hpp:688
A concept that indicates whether a writable alphabet represents quality scores.
Definition: concept.hpp:208
constexpr auto assign_phred_to
Assign a phred score to a quality alphabet object.
Definition: concept.hpp:128
decltype(bio::alphabet::to_phred(std::declval< alphabet_type >())) phred_t
The phred_type of the alphabet; defined as the return type of bio::alphabet::to_phred.
Definition: concept.hpp:86
constexpr auto to_phred
The public getter function for the phred representation of a quality score.
Definition: concept.hpp:65
The alphabet module's namespace.
Definition: aa10li.hpp:23
Customisation tag for bio::alphabet::assign_char_to.
Definition: tag.hpp:57
Customisation tag for bio::alphabet::assign_char_to.
Definition: tag.hpp:53