33template <
typename type>
35 || std::same_as<type, char32_t> || std::same_as<type, wchar_t>;
47template <
typename char_type>
48 requires detail::is_char_adaptation_v<char_type>
64 static constexpr char_type
to_char(char_type
const chr)
noexcept
75 static constexpr auto to_rank(char_type
const chr)
noexcept
87 static constexpr char_type &
assign_char_to(char_type
const chr2, char_type & chr)
noexcept
99 static constexpr char_type &
assign_rank_to(
decltype(alphabet::to_rank(char_type{}))
const rank,
100 char_type & chr)
noexcept
Core alphabet concept and free function/type trait wrappers.
constexpr bool is_char_adaptation_v
Whether a type is char, char16_t, char32_t or wchar_t (type trait).
Definition char.hpp:34
constexpr auto alphabet_size
A type trait that holds the size of a (semi-)alphabet.
Definition alphabet/concept.hpp:846
Provides metaprogramming utilities for integer types.
A namespace for third party and standard library specialisations of SeqAn customisation points.
Definition char.hpp:39
The internal SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
static constexpr auto to_rank(char_type const chr) noexcept
Convert char to rank by casting to an unsigned integral type of same size.
Definition char.hpp:75
static constexpr char_type & assign_char_to(char_type const chr2, char_type &chr) noexcept
Assign a char to the char type (same as calling =).
Definition char.hpp:87
static constexpr char_type to_char(char_type const chr) noexcept
Converting char to char is no-op (it will just return the value you pass in).
Definition char.hpp:64
static constexpr char_type & assign_rank_to(decltype(alphabet::to_rank(char_type{})) const rank, char_type &chr) noexcept
Assigning a rank to a char is the same as assigning it a numeric value.
Definition char.hpp:99
A type that can be specialised to provide customisation point implementations so that third party typ...
Definition alphabet/concept.hpp:46