Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Last active April 18, 2017 10:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deque-blog/b9ecd9dcffb28c991bfcb79293d3bd5b to your computer and use it in GitHub Desktop.
Save deque-blog/b9ecd9dcffb28c991bfcb79293d3bd5b to your computer and use it in GitHub Desktop.
template<typename Finalizer, typename... Generators>
auto apply_gen(Finalizer finalizer, Generators... generators)
{
return [=](std::mt19937& bit_gen)
{
return finalizer(generators(bit_gen)...);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment