28 template <
typename T,
typename RHS>
29 void clef_auto_assign_std_vector_impl(T &x, RHS &&rhs) {
30 x = std::forward<RHS>(rhs);
34 template <
typename Expr,
int... Is,
typename T>
35 void clef_auto_assign_std_vector_impl(T &x, make_fun_impl<Expr, Is...> &&rhs) {
49 template <
typename T,
typename F>
51 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.