mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-01-21 04:42:35 +00:00
22 lines
511 B
C++
22 lines
511 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_left
|
|
#include <boost/callable_traits/expand_args_left.hpp>
|
|
|
|
namespace ct = boost::callable_traits;
|
|
|
|
void f(int, char);
|
|
|
|
template<typename...> struct foo{};
|
|
|
|
int main() {
|
|
|
|
using args = ct::expand_args_left_t<decltype(f), foo, void*>;
|
|
static_assert(std::is_same<args, foo<int, char, void*>>::value, "");
|
|
}
|
|
//]
|