16 #ifndef OPENKALMAN_COLLECTIONS_GETTABLE_HPP 17 #define OPENKALMAN_COLLECTIONS_GETTABLE_HPP 23 #ifndef __cpp_concepts 26 template<std::
size_t i,
typename T,
typename =
void>
29 template<std::
size_t i,
typename T>
31 std::void_t<decltype(collections::get<i>(std::declval<T&>()))>> : std::true_type {};
39 template<std::
size_t i,
typename T>
41 concept
gettable = requires(T& t) { collections::get<i>(t); };
Namespace for collections.
Definition: collections.hpp:27
Definition for collections::get.
constexpr bool gettable
T has an element i that is accessible by collections::get.
Definition: gettable.hpp:43
Definition: gettable.hpp:27