16 #ifndef OPENKALMAN_COORDINATE_FIXED_PATTERN_COLLECTION_HPP 17 #define OPENKALMAN_COORDINATE_FIXED_PATTERN_COLLECTION_HPP 24 #if not defined(__cpp_concepts) or __cpp_generic_lambdas < 201707L 27 template<
typename T, std::size_t...Ix>
30 return (... and
fixed_pattern<collections::collection_element_t<Ix, T>>);
33 template<
typename T,
typename =
void>
34 struct is_fixed_pattern_iter : std::false_type {};
37 struct is_fixed_pattern_iter<T,
std::enable_if_t<
38 collections::uniformly_gettable<T> and stdex::default_initializable<std::decay_t<T>>>>
39 : std::bool_constant<is_fixed_pattern_iter_impl<T>(std::make_index_sequence<collections::size_of_v<T>>{})> {};
42 template<
typename T,
typename =
void>
43 struct is_fixed_descriptor_range : std::false_type {};
46 struct is_fixed_descriptor_range<T, std::enable_if_t<fixed_pattern<stdex::ranges::range_value_t<T>>>>
56 #if defined(__cpp_concepts) and __cpp_generic_lambdas >= 201707L 58 collections::collection<T> and
59 (collections::size_of_v<T> != stdex::dynamic_extent) and
62 {
return (... and
fixed_pattern<collections::collection_element_t<Ix, T>>); }
63 (std::make_index_sequence<collections::size_of_v<T>>{})
66 constexpr
bool fixed_pattern_collection =
67 collections::collection<T> and
68 values::fixed_value_compares_with<collections::size_of<T>, stdex::dynamic_extent, &stdex::is_neq> and
constexpr bool fixed_pattern_collection
An object describing a fixed-size collection of /ref fixed_pattern objects.
Definition: fixed_pattern_collection.hpp:66
Definition for coordinates::fixed_pattern.
constexpr bool value
T is a fixed or dynamic value that is reducible to a number.
Definition: value.hpp:45
The namespace for features relating to coordinates::pattern object.
Definition: compares_with.hpp:25
constexpr bool fixed_pattern
A coordinates::pattern for which the dimension is fixed at compile time.
Definition: fixed_pattern.hpp:46
Inclusion file for collections.
Definition: trait_backports.hpp:64