16 #ifndef OPENKALMAN_COORDINATES_GROUP_COLLECTION_HPP 17 #define OPENKALMAN_COORDINATES_GROUP_COLLECTION_HPP 24 #if not defined(__cpp_concepts) or __cpp_generic_lambdas < 201707L or not defined(__cpp_lib_ranges) 27 template<
typename T,
typename =
void>
28 struct is_descriptor_range : std::false_type {};
31 struct is_descriptor_range<T,
std::enable_if_t<descriptor<stdex::ranges::range_value_t<T>>>> : std::true_type {};
35 constexpr
bool descriptor_range =
39 template<
typename T, std::size_t...Ix>
42 return (... and
descriptor<collections::collection_element_t<Ix, T>>);
45 template<
typename T,
typename =
void>
46 struct is_descriptor_tuple : std::false_type {};
49 struct is_descriptor_tuple<T, std::enable_if_t<collections::uniformly_gettable<T>>>
50 : std::bool_constant<is_descriptor_tuple_impl<T>(std::make_index_sequence<collections::size_of_v<T>>{})> {};
54 inline constexpr
bool descriptor_tuple = is_descriptor_tuple<std::decay_t<T>>
::value;
64 #if defined(__cpp_concepts) and __cpp_generic_lambdas >= 201707L and defined(__cpp_lib_ranges) 66 (std::ranges::random_access_range<T> and descriptor<std::ranges::range_value_t<T>>) or
67 (collections::uniformly_gettable<T> and
69 {
return (... and
descriptor<collections::collection_element_t<Ix, T>>); }
70 (std::make_index_sequence<collections::size_of_v<T>>{}));
72 constexpr
bool descriptor_collection =
73 detail::descriptor_range<T> or
74 detail::descriptor_tuple<T>;
constexpr bool descriptor_collection
An object describing a collection of /ref coordinates::descriptor objects.
Definition: descriptor_collection.hpp:72
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
Definition for coordinates::descriptor.
The namespace for features relating to coordinates::pattern object.
Definition: compares_with.hpp:25
Inclusion file for collections.
constexpr bool descriptor
T is an atomic (non-separable or non-composite) grouping of coordinates::pattern objects.
Definition: descriptor.hpp:31
Definition: trait_backports.hpp:64