16 #ifndef OPENKALMAN_COLLECTIONS_SETTABLE_HPP 17 #define OPENKALMAN_COLLECTIONS_SETTABLE_HPP 24 #ifndef __cpp_concepts 27 template<std::
size_t i,
typename C,
typename T,
typename =
void>
30 template<std::
size_t i,
typename C,
typename T>
32 std::void_t<decltype(collections::get<i>(std::declval<C&>()) = std::declval<T>())>> : std::true_type {};
42 template<std::
size_t i,
typename C,
typename T>
44 concept
settable = requires(C& c, T t) { collections::get<i>(c) = t; };
Namespace for collections.
Definition: collections.hpp:27
Definition for collections::get.
Header file for code relating to values (e.g., scalars and indices)
Definition: settable.hpp:28
constexpr bool settable
C has an element i that can be set by assigning the result of a get(...) function to an object of typ...
Definition: settable.hpp:46