16 #ifndef OPENKALMAN_COORDINATE_FIXED_PATTERN_TUPLE_HPP 17 #define OPENKALMAN_COORDINATE_FIXED_PATTERN_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_fixed_pattern_tuple_impl(std::index_sequence<Ix...>)
33 return (... and fixed_pattern<std::tuple_element_t<Ix, T>>);
36 template<
typename T,
typename =
void>
37 struct is_fixed_pattern_tuple : std::false_type {};
40 struct is_fixed_pattern_tuple<T,
std::enable_if_t<tuple_like<T>>>
41 : std::bool_constant<is_fixed_pattern_tuple_impl<T>(std::make_index_sequence<std::tuple_size_v<T>>{})> {};
51 #if defined(__cpp_concepts) and __cpp_generic_lambdas >= 201707L 54 []<std::size_t...Ix>(std::index_sequence<Ix...>)
55 {
return (... and fixed_pattern<std::tuple_element_t<Ix, std::decay_t<T>>>); }
56 (std::make_index_sequence<std::tuple_size_v<std::decay_t<T>>>{});
58 constexpr
bool fixed_pattern_tuple =
59 detail::is_fixed_pattern_tuple<std::decay_t<T>>
::value;
65 #endif //OPENKALMAN_COORDINATE_FIXED_PATTERN_TUPLE_HPP Definition for collections::tuple_like.
Definition: tuple_reverse.hpp:103
Definition for coordinates::fixed_pattern.
constexpr bool value
T is numerical value or is reducible to a numerical value.
Definition: value.hpp:31
Definition: compares_with.hpp:28
constexpr bool fixed_pattern_tuple
An object describing a tuple-like collection of /ref coordinates::pattern objects.
Definition: fixed_pattern_tuple.hpp:58
Definition for pattern_tuple.