Files
callable_traits/example/push_back.cpp
2016-04-17 12:29:00 -05:00

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