mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-02-19 14:22:10 +00:00
using _t aliases to parallel <type_traits> header
This commit is contained in:
@@ -18,28 +18,28 @@ using sig = void(*)(Ts...);
|
||||
int main() {
|
||||
{
|
||||
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
|
||||
using test = ct::pop_back<f, 2>;
|
||||
using test = ct::args_pop_back_t<f, 2>;
|
||||
using expect = sig<N<0>, N<1>, N<2>>;
|
||||
CT_ASSERT(std::is_same<test, expect>::value);
|
||||
}
|
||||
|
||||
{
|
||||
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
|
||||
using test = ct::pop_back<f, 5>;
|
||||
using test = ct::args_pop_back_t<f, 5>;
|
||||
using expect = sig<>;
|
||||
CT_ASSERT(std::is_same<test, expect>::value);
|
||||
}
|
||||
|
||||
{
|
||||
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
|
||||
using test = ct::pop_back<f, 0>;
|
||||
using test = ct::args_pop_back_t<f, 0>;
|
||||
using expect = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
|
||||
CT_ASSERT(std::is_same<test, expect>::value);
|
||||
}
|
||||
|
||||
{
|
||||
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
|
||||
using test = ct::pop_back<f>;
|
||||
using test = ct::args_pop_back_t<f>;
|
||||
using expect = sig<N<0>, N<1>, N<2>, N<3>>;
|
||||
CT_ASSERT(std::is_same<test, expect>::value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user