Files
callable_traits/example/expand_args.cpp
2016-04-14 15:39:48 -05:00

23 lines
484 B
C++

/*<-
Copyright Barrett Adair 2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http ://boost.org/LICENSE_1_0.txt)
->*/
//[ expand_args
#include <tuple>
#include <callable_traits/expand_args.hpp>
namespace ct = callable_traits;
void f(int, char);
template<typename...> struct foo{};
int main() {
using args = ct::expand_args<decltype(f), foo>;
static_assert(std::is_same<args, foo<int, char>>::value, "");
}
//]