17 #ifndef OPENKALMAN_COLLECTIONS_VIEWS_ALL_HPP 18 #define OPENKALMAN_COLLECTIONS_VIEWS_ALL_HPP 33 template<viewable_collection R>
36 template<
typename R, std::enable_if_t<viewable_collection<R>,
int> = 0>
37 constexpr decltype(
auto)
39 operator() (R&& r)
const 42 collection_view<R> and
44 collections::tuple_like<R>))
46 return std::forward<R>(r);
48 else if constexpr (stdex::ranges::random_access_range<R> and stdex::ranges::viewable_range<R>)
80 template<viewable_collection R>
82 template<
typename R, std::enable_if_t<viewable_collection<R>,
int> = 0>
84 using all_t = decltype(
all(std::declval<R>()));
Definition for collections::tuple_like.
A collection_view created from a std::ranges::random_access_range that is a std::ranges::viewable_ran...
Definition: from_range.hpp:122
The size of a sized object (including a collection).
Definition: size_of.hpp:33
A collection_view created from a viewable_tuple_like object.
Definition: from_tuple_like.hpp:74
constexpr detail::all_closure all
a std::ranges::range_adaptor_closure which returns a view to all members of its collection argument...
Definition: all.hpp:72
Definition for collections::from_range.
constexpr bool collection_view
A view to a collection which is also a std::ranges:view.
Definition: collection_view.hpp:31
Namespace for generalized views.
Definition: collections.hpp:33
Definition: range_adaptor_closure.hpp:34
constexpr bool fixed_value_compares_with
T has a fixed value that compares with N in a particular way based on parameter comp.
Definition: fixed_value_compares_with.hpp:74
Definition for collections::viewable_collection.
decltype(all(std::declval< R >())) all_t
Calculates the suitable collection_view type of a viewable_collection type.
Definition: all.hpp:84
Basic definitions for OpenKalman as a whole.
Definition for collections::from_tuple_like.