Skip to content

Instantly share code, notes, and snippets.

@JohanMabille
Created January 3, 2020 00:58
Show Gist options
  • Save JohanMabille/c84719e38a0886b60e4076838e586b8d to your computer and use it in GitHub Desktop.
Save JohanMabille/c84719e38a0886b60e4076838e586b8d to your computer and use it in GitHub Desktop.
template <class F, class... CT>
inline void xfunction_stepper<F, CT...>::step(size_type dim, size_type n)
{
auto f = [dim, n](auto& st) { st.step(dim, n); };
for_each(f, m_st);
}
template <class F, class... CT>
inline void xfunction_stepper<F, CT...>::step_back(size_type dim, size_type n)
{
auto f = [dim, n](auto& st) { st.step_back(dim, n); };
for_each(f, m_st);
}
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment