Files
callable_traits/example/expand_args.cpp
2016-06-17 17:28:50 -05:00

22 lines
476 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 <callable_traits/expand_args.hpp>
namespace ct = callable_traits;
void f(int, char);
template<typename, typename> struct foo{};
int main() {
using args = ct::expand_args_t<decltype(f), foo>;
static_assert(std::is_same<args, foo<int, char>>::value, "");
}
//]