using _t aliases to parallel <type_traits> header

This commit is contained in:
badair
2016-06-01 21:49:51 -05:00
parent 50bf51af57
commit 0c9ecb7f27
114 changed files with 927 additions and 867 deletions

View File

@@ -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);
}