66 constexpr dna4() noexcept = default;
67 constexpr
dna4(
dna4 const &) noexcept = default;
69 constexpr
dna4 & operator=(
dna4 const &) noexcept = default;
70 constexpr
dna4 & operator=(
dna4 &&) noexcept = default;
71 ~
dna4() noexcept = default;
77 constexpr
dna4(t const & r) noexcept
102 ret[rank_to_char[rnk]] = rnk;
103 ret[detail::to_lower(rank_to_char[rnk])] = rnk;
145inline namespace literals
156consteval dna4 operator""_dna4(
char const c)
158 if (!char_is_valid_for<dna4>(c))
173template <meta::detail::literal_buffer_
string str>
176 return detail::string_literal<str, dna4>();
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 four letter DNA alphabet of A,C,G,T..
Definition: dna4.hpp:49
constexpr dna4() noexcept=default
Defaulted.
A CRTP-base that refines bio::alphabet::base and is used by the nucleotides.
Definition: nucleotide_base.hpp:42
The four letter RNA alphabet of A,C,G,U..
Definition: rna4.hpp:48
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition: concept.hpp:70
The alphabet module's namespace.
Definition: aa10li.hpp:23
Provides bio::alphabet::nucleotide_base.