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

@@ -19,63 +19,63 @@ int main() {
{
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
using test = ct::remove_args<0, f>;
using test = ct::remove_args_t<0, f>;
using expect = sig<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::remove_args<1, f>;
using test = ct::remove_args_t<1, f>;
using expect = sig<N<0>, 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::remove_args<2, f>;
using test = ct::remove_args_t<2, f>;
using expect = sig<N<0>, N<1>, 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::remove_args<3, f>;
using test = ct::remove_args_t<3, f>;
using expect = sig<N<0>, N<1>, N<2>, 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::remove_args<4, f>;
using test = ct::remove_args_t<4, f>;
using expect = sig<N<0>, N<1>, N<2>, N<3>>;
CT_ASSERT(std::is_same<test, expect>::value);
}
{
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
using test = ct::remove_args<0, f, 5>;
using test = ct::remove_args_t<0, 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::remove_args<0, f, 3>;
using test = ct::remove_args_t<0, f, 3>;
using expect = sig<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::remove_args<3, f, 2>;
using test = ct::remove_args_t<3, 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::remove_args<4, f, 1>;
using test = ct::remove_args_t<4, f, 1>;
using expect = sig<N<0>, N<1>, N<2>, N<3>>;
CT_ASSERT(std::is_same<test, expect>::value);
}