function_traits: export the function signature as a type

This makes it easy to further examine using pattern matching instead
of std::index_sequence.
This commit is contained in:
Avi Kivity
2015-07-17 16:07:33 +03:00
parent db331efaa1
commit f2577c8af3

View File

@@ -31,6 +31,7 @@ struct function_traits<Ret(Args...)>
{
using return_type = Ret;
using args_as_tuple = std::tuple<Args...>;
using signature = Ret (Args...);
static constexpr std::size_t arity = sizeof...(Args);