]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | |
2 | // (C) Copyright John Maddock 2010. | |
3 | // Use, modification and distribution are subject to the | |
4 | // Boost Software License, Version 1.0. (See accompanying file | |
5 | // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
6 | ||
7 | #include <boost/type_traits.hpp> | |
8 | ||
9 | // | |
10 | // Just check that each trait actually exists, not | |
11 | // that it gives the correct answer, we do that elsewhere: | |
12 | // | |
13 | ||
14 | typedef boost::add_const<int>::type t1; | |
15 | typedef boost::add_cv<int>::type t2; | |
16 | typedef boost::add_lvalue_reference<int>::type t3; | |
17 | typedef boost::add_pointer<int>::type t4; | |
18 | typedef boost::add_reference<int>::type t5; | |
19 | typedef boost::add_rvalue_reference<int>::type t6; | |
20 | typedef boost::add_volatile<int>::type t7; | |
21 | ||
22 | typedef boost::aligned_storage<2>::type t8; | |
23 | typedef boost::alignment_of<int>::type t9; | |
24 | typedef boost::conditional<true, int, long>::type t10; | |
25 | typedef boost::common_type<int, long>::type t11; | |
26 | typedef boost::decay<int[2] >::type t12; | |
27 | typedef boost::extent<int[3] >::type t13; | |
28 | typedef boost::floating_point_promotion<int>::type t14; | |
29 | typedef boost::function_traits<int (int) > t15; | |
30 | ||
31 | typedef boost::has_new_operator<int> t16; | |
32 | typedef boost::has_nothrow_assign<int> t17; | |
33 | typedef boost::has_nothrow_constructor<int> t18; | |
34 | typedef boost::has_nothrow_copy<int> t19; | |
35 | typedef boost::has_nothrow_copy_constructor<int> t20; | |
36 | typedef boost::has_nothrow_default_constructor<int> t21; | |
37 | typedef boost::has_trivial_assign<int> t22; | |
38 | typedef boost::has_trivial_constructor<int> t23; | |
39 | typedef boost::has_trivial_copy<int> t24; | |
40 | typedef boost::has_trivial_copy_constructor<int> t25; | |
41 | typedef boost::has_trivial_default_constructor<int> t26; | |
42 | typedef boost::has_trivial_destructor<int> t27; | |
43 | typedef boost::has_virtual_destructor<int> t28; | |
44 | ||
45 | typedef boost::integral_constant<int, 2> t29; | |
46 | typedef boost::integral_promotion<short>::type t30; | |
47 | ||
48 | typedef boost::is_abstract<int>::type t31; | |
49 | typedef boost::is_arithmetic<int>::type t32; | |
50 | typedef boost::is_array<int>::type t33; | |
51 | typedef boost::is_base_of<int, long>::type t34; | |
52 | typedef boost::is_class<int>::type t35; | |
53 | typedef boost::is_complex<int>::type t36; | |
54 | typedef boost::is_compound<int>::type t37; | |
55 | typedef boost::is_const<int>::type t38; | |
56 | typedef boost::is_convertible<int, long>::type t39; | |
57 | typedef boost::is_empty<int>::type t40; | |
58 | typedef boost::is_enum<int>::type t41; | |
59 | typedef boost::is_floating_point<int>::type t42; | |
60 | typedef boost::is_function<int>::type t43; | |
61 | typedef boost::is_fundamental<int>::type t44; | |
62 | typedef boost::is_integral<int>::type t45; | |
63 | typedef boost::is_lvalue_reference<int>::type t46; | |
64 | typedef boost::is_member_function_pointer<int>::type t47; | |
65 | typedef boost::is_member_object_pointer<int>::type t48; | |
66 | typedef boost::is_member_pointer<int>::type t49; | |
67 | typedef boost::is_object<int>::type t50; | |
68 | typedef boost::is_pod<int>::type t51; | |
69 | typedef boost::is_pointer<int>::type t52; | |
70 | typedef boost::is_polymorphic<int>::type t53; | |
71 | typedef boost::is_reference<int>::type t54; | |
72 | typedef boost::is_rvalue_reference<int>::type t55; | |
73 | typedef boost::is_same<int, int>::type t56; | |
74 | typedef boost::is_scalar<int>::type t57; | |
75 | typedef boost::is_signed<int>::type t58; | |
76 | typedef boost::is_stateless<int>::type t59; | |
77 | typedef boost::is_union<int>::type t60; | |
78 | typedef boost::is_unsigned<int>::type t61; | |
79 | typedef boost::is_virtual_base_of<int, int>::type t62; | |
80 | typedef boost::is_void<int>::type t63; | |
81 | typedef boost::is_volatile<int>::type t64; | |
82 | typedef boost::make_signed<int>::type t65; | |
83 | typedef boost::make_unsigned<int>::type t66; | |
84 | typedef boost::promote<int>::type t67; | |
85 | typedef boost::rank<int>::type t68; | |
86 | ||
87 | typedef boost::remove_all_extents<int>::type t69; | |
88 | typedef boost::remove_const<int>::type t70; | |
89 | typedef boost::remove_cv<int>::type t71; | |
90 | typedef boost::remove_extent<int>::type t72; | |
91 | typedef boost::remove_pointer<int>::type t73; | |
92 | typedef boost::remove_reference<int>::type t74; | |
93 | typedef boost::remove_volatile<int>::type t75; | |
94 | typedef boost::type_with_alignment<4>::type t76; | |
95 | ||
96 | int main() | |
97 | { | |
98 | return 0; | |
99 | } | |
100 | ||
101 | ||
102 | ||
103 |