Created
May 11, 2017 08:11
-
-
Save deque-blog/36d731cb63349b9fe7d01d3608938665 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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