39 template <
typename T,
typename RHS>
40 void clef_auto_assign_std_vector_impl(T &x, RHS &&rhs) {
41 x = std::forward<RHS>(rhs);
45 template <
typename Expr,
int... Is,
typename T>
46 void clef_auto_assign_std_vector_impl(T &x, make_fun_impl<Expr, Is...> &&rhs) {
60 template <
typename T,
typename F>
62 for (
size_t i = 0; i < v.size(); ++i) detail::clef_auto_assign_std_vector_impl(v[i], f(i));
Includes all relevant headers for the core clef library.
void clef_auto_assign_subscript(std::vector< T > &v, F f)
Overload of clef_auto_assign_subscript function for std::vector.