35 SEQAN3_CONCEPT fields_specialisation = is_value_specialisation_of_v<t, fields>;
61 template <
typename field_types,
62 typename field_types_as_ids,
63 typename selected_field_ids,
65 typename ...return_types>
66 struct select_types_with_ids
76 template <
typename field_types,
77 typename field_types_as_ids,
78 typename selected_field_ids,
80 typename ...return_types>
81 using select_types_with_ids_t =
typename select_types_with_ids<field_types,
85 return_types...>::type;
87 template <
typename field_types,
88 typename field_types_as_ids,
89 typename selected_field_ids,
91 typename ...return_types>
92 requires field_no < selected_field_ids::as_array.size()
93 struct select_types_with_ids<field_types, field_types_as_ids, selected_field_ids, field_no, return_types...>
96 "You selected a field that was not in field_types_as_ids.");
99 using type = select_types_with_ids_t<field_types,
105 selected_field_ids::as_array[field_no]), field_types>>;
118 template <field f,
typename field_types,
typename field_
ids>
123 return std::get<field_ids::index_of(f)>(r);
129 template <field f,
typename field_types,
typename field_
ids>
133 return std::get<field_ids::index_of(f)>(r);
139 template <
size_t i,
template <
tuple_like ...types_>
typename tuple_like_t,
typename ...types>
140 auto & get_or_ignore(tuple_like_t<types...> & t)
142 if constexpr (i <
sizeof...(types))
143 return std::get<i>(t);
149 template <
size_t i,
template <
tuple_like ...types_>
typename tuple_like_t,
typename ...types>
150 auto const & get_or_ignore(tuple_like_t<types...>
const & t)
152 if constexpr (i <
sizeof...(types))
153 return std::get<i>(t);
167 template <field f,
typename field_types,
typename field_
ids,
typename or_type>
172 return std::get<field_ids::index_of(f)>(r);
174 return std::forward<or_type>(or_value);
178 template <field f,
typename field_types,
typename field_
ids,
typename or_type>
182 return std::get<field_ids::index_of(f)>(r);
184 return std::forward<or_type>(or_value);
188 template <
size_t i,
typename or_type,
typename ...types>
191 if constexpr (i <
sizeof...(types))
192 return std::get<i>(t);
194 return std::forward<or_type>(or_value);
198 template <
size_t i,
typename or_type,
typename ...types>
201 if constexpr (i <
sizeof...(types))
202 return std::get<i>(t);
204 return std::forward<or_type>(or_value);
213 template <std::ranges::input_range rng_t>
214 inline auto & range_wrap_ignore(rng_t & range)
225 inline auto range_wrap_ignore(ignore_t
const &)
meta::list< types... > type_list
Type that contains multiple types, an alias for meta::list.
Definition: type_list.hpp:31
The class template that file records are based on; behaves like an std::tuple.
Definition: record.hpp:225
Provides traits for seqan3::type_list.
Provides the views::repeat_view.
Whether a type behaves like a tuple.
Provides seqan3::tuple_like.
Provides the seqan3::record template and the seqan3::field enum.
Adaptations of concepts from the Ranges TS.
constexpr bool contains
Whether a type occurs in a pack or not.
Definition: traits.hpp:193
Definition: aligned_sequence_concept.hpp:36
typename decltype(detail::at< idx >(list_t{}))::type at
Return the type at given index from the type list.
Definition: traits.hpp:523
constexpr detail::repeat_fn repeat
A view factory that repeats a given value infinitely.
Definition: repeat.hpp:350