16 #ifndef OPENKALMAN_COORDINATES_DESCRIPTOR_TUPLE_HPP 17 #define OPENKALMAN_COORDINATES_DESCRIPTOR_TUPLE_HPP 19 #include <type_traits> 27 #if not defined(__cpp_concepts) or __cpp_generic_lambdas < 201707L 30 template<
typename T, std::size_t...Ix>
31 constexpr
bool is_descriptor_tuple_impl(std::index_sequence<Ix...>)
33 return (... and descriptor<std::tuple_element_t<Ix, T>>);
36 template<
typename T,
typename =
void>
37 struct is_descriptor_tuple : std::false_type {};
40 struct is_descriptor_tuple<T,
std::enable_if_t<collections::tuple_like<T>>>
41 : std::bool_constant<is_descriptor_tuple_impl<T>(std::make_index_sequence<std::tuple_size_v<T>>{})> {};
50 #if defined(__cpp_concepts) and __cpp_generic_lambdas >= 201707L 52 []<std::size_t...Ix>(std::index_sequence<Ix...>)
53 {
return (... and descriptor<std::tuple_element_t<Ix, std::decay_t<T>>>); }
54 (std::make_index_sequence<std::tuple_size_v<std::decay_t<T>>>{});
56 constexpr
bool descriptor_tuple = detail::is_descriptor_tuple<std::decay_t<T>>
::value;
62 #endif //OPENKALMAN_COORDINATES_DESCRIPTOR_TUPLE_HPP Definition for collections::tuple_like.
Definition: tuple_reverse.hpp:103
constexpr bool value
T is numerical value or is reducible to a numerical value.
Definition: value.hpp:31
Definition for coordinates::descriptor.
Definition: compares_with.hpp:28
constexpr bool descriptor_tuple
An object describing a tuple-like collection of /ref coordinates::descriptor objects.
Definition: descriptor_tuple.hpp:56