23namespace seqan3::detail
38template <
typename rng_t>
39SEQAN3_CONCEPT debug_stream_range_guard =
40 !std::same_as<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>,
43 !(std::is_pointer_v<std::decay_t<rng_t>> &&
44 std::same_as<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>,
char>);
57template <std::ranges::range rng_t,
typename char_t>
58constexpr bool reference_type_is_streamable_v =
false;
61template <std::ranges::range rng_t,
typename char_t>
63constexpr bool reference_type_is_streamable_v<rng_t, char_t> =
true;
91template <
typename char_t, std::ranges::input_range rng_t>
92inline debug_stream_type<char_t> &
operator<<(debug_stream_type<char_t> & s, rng_t && r)
94 requires detail::debug_stream_range_guard<rng_t>
97 static_assert(detail::reference_type_is_streamable_v<rng_t, char_t>,
98 "The reference type of the passed range cannot be streamed into the debug_stream.");
101 auto b = std::ranges::begin(r);
102 auto e = std::ranges::end(r);
135template <
typename char_t, sequence sequence_t>
136inline debug_stream_type<char_t> &
operator<<(debug_stream_type<char_t> & s, sequence_t &&
sequence)
138 requires detail::debug_stream_range_guard<sequence_t> &&
139 (!detail::is_uint_adaptation_v<std::remove_cvref_t<std::ranges::range_reference_t<sequence_t>>>)
Provides alphabet adaptations for standard char types.
A "pretty printer" for most SeqAn data structures and related types.
Definition: debug_stream_type.hpp:78
Provides various transformation traits used by the range module.
Provides seqan3::debug_stream and related types.
debug_stream_type< char_t > & operator<<(debug_stream_type< char_t > &stream, alignment_t &&alignment)
Stream operator for alignments, which are represented as tuples of aligned sequences.
Definition: debug_stream_alignment.hpp:101
The generic concept for a (biological) sequence.
The main SeqAn3 namespace.
Definition: cigar_operation_table.hpp:2
The <ranges> header from C++20's standard library.
Additional non-standard concepts for ranges.
Provides alphabet adaptations for standard uint types.