24 namespace seqan3::detail
39 template <
typename rng_t>
40 SEQAN3_CONCEPT debug_stream_range_guard =
41 !std::same_as<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>,
44 !(std::is_pointer_v<std::decay_t<rng_t>> &&
45 std::same_as<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>,
char>);
58 template <std::ranges::range rng_t,
typename char_t>
59 constexpr
bool reference_type_is_streamable_v =
false;
62 template <std::ranges::range rng_t,
typename char_t>
64 constexpr
bool reference_type_is_streamable_v<rng_t, char_t> =
true;
92 template <
typename char_t, std::ranges::input_range rng_t>
93 inline debug_stream_type<char_t> &
operator<<(debug_stream_type<char_t> & s, rng_t && r)
95 requires detail::debug_stream_range_guard<rng_t>
98 static_assert(detail::reference_type_is_streamable_v<rng_t, char_t>,
99 "The reference type of the passed range cannot be streamed into the debug_stream.");
102 auto b = std::ranges::begin(r);
103 auto e = std::ranges::end(r);
121 template <
typename char_t, sequence rng_t>
122 inline debug_stream_type<char_t> &
operator<<(debug_stream_type<char_t> & s, rng_t && r)
124 requires detail::debug_stream_range_guard<rng_t> &&
125 (!detail::is_uint_adaptation_v<std::remove_cvref_t<std::ranges::range_reference_t<rng_t>>>)
Core alphabet concept and free function/type trait wrappers.
Provides alphabet adaptations for standard char types.
A "pretty printer" for most SeqAn data structures and related types.
Definition: debug_stream_type.hpp:71
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:103
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
typename remove_cvref< t >::type remove_cvref_t
Return the input type with const, volatile and references removed (transformation_trait shortcut).
Definition: type_traits:56
Additional non-standard concepts for ranges.
Provides various transformation traits used by the range module.
Adaptations of concepts from the Ranges TS.
Provides alphabet adaptations for standard uint types.