18#include <bio/alphabet/detail/to_lower.hpp>
67 constexpr dna15() noexcept = default;
70 constexpr
dna15 & operator=(
dna15 const &) noexcept = default;
71 constexpr
dna15 & operator=(
dna15 &&) noexcept = default;
78 constexpr
dna15(t const & r) noexcept
89 rank_to_char{
'A',
'B',
'C',
'D',
'G',
'H',
'K',
'M',
'N',
'R',
'S',
'T',
'V',
'W',
'Y'};
102 ret[rank_to_char[rnk]] = rnk;
103 ret[detail::to_lower(rank_to_char[rnk])] = rnk;
126inline namespace literals
137consteval dna15 operator""_dna15(
char const c)
139 if (!char_is_valid_for<dna15>(c))
154template <meta::detail::literal_buffer_
string str>
157 return detail::string_literal<str, dna15>();
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 15 letter DNA alphabet, containing all IUPAC smybols minus the gap..
Definition: dna15.hpp:50
constexpr dna15() noexcept=default
Defaulted.
A CRTP-base that refines bio::alphabet::base and is used by the nucleotides.
Definition: nucleotide_base.hpp:42
The 15 letter RNA alphabet, containing all IUPAC smybols minus the gap..
Definition: rna15.hpp:50
The alphabet module's namespace.
Definition: aa10li.hpp:23
Provides bio::alphabet::nucleotide_base.