18#include <bio/alphabet/detail/to_lower.hpp>
67 constexpr dna5() noexcept = default;
68 constexpr
dna5(
dna5 const &) noexcept = default;
70 constexpr
dna5 & operator=(
dna5 const &) noexcept = default;
71 constexpr
dna5 & operator=(
dna5 &&) noexcept = default;
72 ~
dna5() noexcept = default;
78 constexpr
dna5(t const & r) noexcept
101 ret[rank_to_char[rnk]] = rnk;
102 ret[detail::to_lower(rank_to_char[rnk])] = rnk;
126inline namespace literals
137consteval dna5 operator""_dna5(
char const c)
139 if (!char_is_valid_for<dna5>(c))
154template <meta::detail::literal_buffer_
string str>
157 return detail::string_literal<str, dna5>();
constexpr derived_type & assign_rank(rank_type const c) noexcept
Assign from a numeric value.
Definition: base.hpp:168
static constexpr size_t alphabet_size
The size of the alphabet, i.e. the number of different values it can take.
Definition: base.hpp:177
constexpr derived_type & assign_char(char_type const c) noexcept
Assign from a character, implicitly converts invalid characters.
Definition: base.hpp:145
The five letter DNA alphabet of A,C,G,T and the unknown character N..
Definition: dna5.hpp:50
constexpr dna5() noexcept=default
Defaulted.
A CRTP-base that refines bio::alphabet::base and is used by the nucleotides.
Definition: nucleotide_base.hpp:42
The five letter RNA alphabet of A,C,G,U and the unknown character N..
Definition: rna5.hpp:48
The alphabet module's namespace.
Definition: aa10li.hpp:23
Provides bio::alphabet::nucleotide_base.