Files
callable_traits/example/pop_front_args.cpp
2016-06-14 22:52:08 -05:00

22 lines
501 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)
->*/
//[ pop_front_args
#include <callable_traits/pop_front_args.hpp>
namespace ct = callable_traits;
struct foo;
int main() {
using f = void(foo::*)(int, char, long);
using test = ct::pop_front_args_t<f>;
using expect = void(foo::*)(char, long);
static_assert(std::is_same<test, expect>::value, "");
}
//]