22 namespace seqan3::detail::adl_only
26 template <
typename ...args_t>
39 template <typename alph_t>
41 requires requires (alph_t
const chr) { { impl(priority_tag<2>{}, chr) }; }
43 constexpr
auto operator()(alph_t
const chr)
const noexcept
45 static_assert(noexcept(impl(priority_tag<2>{}, chr)),
46 "Only overloads that are marked noexcept are picked up by seqan3::to_phred().");
48 "The return type of your to_phred() implementation must be convertible to size_t.");
50 return impl(priority_tag<2>{}, chr);
89 inline constexpr
auto to_phred = detail::adl_only::to_phred_fn{};
95 template <
typename alphabet_type>
107 namespace seqan3::detail::adl_only
111 template <
typename ...args_t>
116 struct assign_phred_to_fn
125 template <typename alph_t>
128 { { impl(priority_tag<2>{}, a, p) }; }
132 static_assert(noexcept(impl(priority_tag<2>{}, a, p)),
133 "Only overloads that are marked noexcept are picked up by seqan3::assign_phred_to().");
134 static_assert(
std::same_as<alph_t &, decltype(impl(priority_tag<2>{}, a, p))>,
135 "The return type of your assign_phred_to() implementation must be 'alph_t &'.");
137 return impl(priority_tag<2>{}, a, p);
141 template <
typename alph_t>
144 { { impl(priority_tag<2>{}, a, p) }; } && (!std::is_lvalue_reference_v<alph_t>)
148 return (*
this)(p, a);
228 template <
typename t>
266 template <
typename t>
270 requires(t v, alphabet_phred_t<t> c)