21namespace seqan3::detail
30template <
typename tuple_t>
31concept tuple_size =
requires (tuple_t v) {
32 { std::tuple_size<tuple_t>::value } -> std::convertible_to<size_t>;
42template <
typename tuple_t>
43concept tuple_get =
requires (tuple_t & v, tuple_t
const & v_c) {
44 requires std::tuple_size_v<tuple_t> > 0;
46 typename std::tuple_element<0, tuple_t>::type;
48 { get<0>(v) } -> std::convertible_to<typename std::tuple_element<0, tuple_t>::type>;
53 { get<0>(v_c) } -> std::convertible_to<typename std::tuple_element<0, tuple_t>::type>;
54 { get<0>(std::move(v)) } -> std::convertible_to<typename std::tuple_element<0, tuple_t>::type>;
55 { get<0>(std::move(v_c)) } -> std::convertible_to<typename std::tuple_element<0, tuple_t>::type
const &&>;
66template <detail::tuple_size tuple_t>
71 template <
size_t... Is>
74 return type_list<std::tuple_element_t<Is, tuple_t>...>{};
87template <detail::tuple_size tuple_t>
88using tuple_type_list_t =
typename tuple_type_list<tuple_t>::type;
93template <
typename... elements_t>
101template <
typename tuple_t>
102 requires requires () {
103 { detail::all_elements_model_totally_ordered(tuple_type_list_t<tuple_t>{}) };
105static constexpr bool all_elements_model_totally_ordered_v =
106 decltype(detail::all_elements_model_totally_ordered(tuple_type_list_t<tuple_t>{}))::value;
166concept tuple_like = detail::tuple_size<std::remove_reference_t<t>> &&
requires (t v) {
167 typename detail::tuple_type_list<std::remove_cvref_t<t>>::type;
173 requires (std::tuple_size<std::remove_reference_t<t>>::value == 0)
Provides various type traits on generic types.
A "pretty printer" for most SeqAn data structures and related types.
Definition debug_stream_type.hpp:79
Whether a type behaves like a tuple with exactly two elements.
Whether a type behaves like a tuple.
The main SeqAn3 namespace.
Definition aligned_sequence_concept.hpp:26
Provides seqan3::pod_tuple.
Provides type traits for working with templates.
Provides seqan3::type_list.