Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created May 11, 2017 08:11
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/36d731cb63349b9fe7d01d3608938665 to your computer and use it in GitHub Desktop.
Save deque-blog/36d731cb63349b9fe7d01d3608938665 to your computer and use it in GitHub Desktop.
template <typename ...Names, typename ...Args>
auto zip_args(
hana::tuple<Names...> const& arg_names,
hana::tuple<Args...> const& arg_values)
{
return hana::zip_with(
[](auto const& name, auto const& val) {
return hana::make_tuple(std::string(name) + " ", val); },
arg_names, arg_values);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment