]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/libs/type_traits/test/type_traits_test.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / type_traits / test / type_traits_test.cpp
CommitLineData
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
14typedef boost::add_const<int>::type t1;
15typedef boost::add_cv<int>::type t2;
16typedef boost::add_lvalue_reference<int>::type t3;
17typedef boost::add_pointer<int>::type t4;
18typedef boost::add_reference<int>::type t5;
19typedef boost::add_rvalue_reference<int>::type t6;
20typedef boost::add_volatile<int>::type t7;
21
22typedef boost::aligned_storage<2>::type t8;
23typedef boost::alignment_of<int>::type t9;
24typedef boost::conditional<true, int, long>::type t10;
25typedef boost::common_type<int, long>::type t11;
26typedef boost::decay<int[2] >::type t12;
27typedef boost::extent<int[3] >::type t13;
28typedef boost::floating_point_promotion<int>::type t14;
29typedef boost::function_traits<int (int) > t15;
30
31typedef boost::has_new_operator<int> t16;
32typedef boost::has_nothrow_assign<int> t17;
33typedef boost::has_nothrow_constructor<int> t18;
34typedef boost::has_nothrow_copy<int> t19;
35typedef boost::has_nothrow_copy_constructor<int> t20;
36typedef boost::has_nothrow_default_constructor<int> t21;
37typedef boost::has_trivial_assign<int> t22;
38typedef boost::has_trivial_constructor<int> t23;
39typedef boost::has_trivial_copy<int> t24;
40typedef boost::has_trivial_copy_constructor<int> t25;
41typedef boost::has_trivial_default_constructor<int> t26;
42typedef boost::has_trivial_destructor<int> t27;
43typedef boost::has_virtual_destructor<int> t28;
44
45typedef boost::integral_constant<int, 2> t29;
46typedef boost::integral_promotion<short>::type t30;
47
48typedef boost::is_abstract<int>::type t31;
49typedef boost::is_arithmetic<int>::type t32;
50typedef boost::is_array<int>::type t33;
51typedef boost::is_base_of<int, long>::type t34;
52typedef boost::is_class<int>::type t35;
53typedef boost::is_complex<int>::type t36;
54typedef boost::is_compound<int>::type t37;
55typedef boost::is_const<int>::type t38;
56typedef boost::is_convertible<int, long>::type t39;
57typedef boost::is_empty<int>::type t40;
58typedef boost::is_enum<int>::type t41;
59typedef boost::is_floating_point<int>::type t42;
60typedef boost::is_function<int>::type t43;
61typedef boost::is_fundamental<int>::type t44;
62typedef boost::is_integral<int>::type t45;
63typedef boost::is_lvalue_reference<int>::type t46;
64typedef boost::is_member_function_pointer<int>::type t47;
65typedef boost::is_member_object_pointer<int>::type t48;
66typedef boost::is_member_pointer<int>::type t49;
67typedef boost::is_object<int>::type t50;
68typedef boost::is_pod<int>::type t51;
69typedef boost::is_pointer<int>::type t52;
70typedef boost::is_polymorphic<int>::type t53;
71typedef boost::is_reference<int>::type t54;
72typedef boost::is_rvalue_reference<int>::type t55;
73typedef boost::is_same<int, int>::type t56;
74typedef boost::is_scalar<int>::type t57;
75typedef boost::is_signed<int>::type t58;
76typedef boost::is_stateless<int>::type t59;
77typedef boost::is_union<int>::type t60;
78typedef boost::is_unsigned<int>::type t61;
79typedef boost::is_virtual_base_of<int, int>::type t62;
80typedef boost::is_void<int>::type t63;
81typedef boost::is_volatile<int>::type t64;
82typedef boost::make_signed<int>::type t65;
83typedef boost::make_unsigned<int>::type t66;
84typedef boost::promote<int>::type t67;
85typedef boost::rank<int>::type t68;
86
87typedef boost::remove_all_extents<int>::type t69;
88typedef boost::remove_const<int>::type t70;
89typedef boost::remove_cv<int>::type t71;
90typedef boost::remove_extent<int>::type t72;
91typedef boost::remove_pointer<int>::type t73;
92typedef boost::remove_reference<int>::type t74;
93typedef boost::remove_volatile<int>::type t75;
94typedef boost::type_with_alignment<4>::type t76;
95
96int main()
97{
98 return 0;
99}
100
101
102
103