mirror of
https://github.com/boostorg/callable_traits.git
synced 2026-01-24 05:42:12 +00:00
using _t aliases to parallel <type_traits> header
This commit is contained in:
@@ -19,42 +19,42 @@ int main() {
|
||||
|
||||
{
|
||||
using f = sig<N<0>, N<1>, N<2>, N<3>, N<4>>;
|
||||
using test = ct::insert_args<0, f, int, char>;
|
||||
using test = ct::insert_args_t<0, f, int, char>;
|
||||
using expect = sig<int, char, 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::insert_args<1, f, int, char>;
|
||||
using test = ct::insert_args_t<1, f, int, char>;
|
||||
using expect = sig<N<0>, int, char, 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::insert_args<2, f, int, char>;
|
||||
using test = ct::insert_args_t<2, f, int, char>;
|
||||
using expect = sig<N<0>, N<1>, int, char, 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::insert_args<3, f, int, char>;
|
||||
using test = ct::insert_args_t<3, f, int, char>;
|
||||
using expect = sig<N<0>, N<1>, N<2>, int, char, 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::insert_args<4, f, int, char>;
|
||||
using test = ct::insert_args_t<4, f, int, char>;
|
||||
using expect = sig<N<0>, N<1>, N<2>, N<3>, int, char, 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::insert_args<5, f, int, char>;
|
||||
using test = ct::insert_args_t<5, f, int, char>;
|
||||
using expect = sig<N<0>, N<1>, N<2>, N<3>, N<4>, int, char>;
|
||||
CT_ASSERT(std::is_same<test, expect>::value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user