Lines Matching refs:static_assert
20 static_assert(!is_pointer<int>::value, "IsPointer");
21 static_assert(!is_pointer<int&>::value, "IsPointer");
22 static_assert(is_pointer<int*>::value, "IsPointer");
23 static_assert(is_pointer<const int*>::value, "IsPointer");
26 static_assert(!is_array<int>::value, "IsArray");
27 static_assert(!is_array<int*>::value, "IsArray");
28 static_assert(!is_array<int (*)[3]>::value, "IsArray");
29 static_assert(is_array<int[]>::value, "IsArray");
30 static_assert(is_array<const int[]>::value, "IsArray");
31 static_assert(is_array<int[3]>::value, "IsArray");
34 static_assert(!is_non_const_reference<int>::value, "IsNonConstReference");
35 static_assert(!is_non_const_reference<const int&>::value,
37 static_assert(is_non_const_reference<int&>::value, "IsNonConstReference");
47 static_assert((is_convertible<Child, Parent>::value), "IsConvertible");
48 static_assert(!(is_convertible<Parent, Child>::value), "IsConvertible");
49 static_assert(!(is_convertible<Parent, AStruct>::value), "IsConvertible");
50 static_assert((is_convertible<int, double>::value), "IsConvertible");
51 static_assert((is_convertible<int*, void*>::value), "IsConvertible");
52 static_assert(!(is_convertible<void*, int*>::value), "IsConvertible");
56 static_assert(!(is_convertible<int[10], double>::value), "IsConvertible");
57 static_assert(!(is_convertible<double, int[10]>::value), "IsConvertible");
58 static_assert((is_convertible<int[10], int*>::value), "IsConvertible");
61 static_assert(!(is_same<Child, Parent>::value), "IsSame");
62 static_assert(!(is_same<Parent, Child>::value), "IsSame");
63 static_assert((is_same<Parent, Parent>::value), "IsSame");
64 static_assert((is_same<int*, int*>::value), "IsSame");
65 static_assert((is_same<int, int>::value), "IsSame");
66 static_assert((is_same<void, void>::value), "IsSame");
67 static_assert(!(is_same<int, double>::value), "IsSame");
70 static_assert(is_class<AStruct>::value, "IsClass");
71 static_assert(is_class<AClass>::value, "IsClass");
72 static_assert(!is_class<AnEnum>::value, "IsClass");
73 static_assert(!is_class<int>::value, "IsClass");
74 static_assert(!is_class<char*>::value, "IsClass");
75 static_assert(!is_class<int&>::value, "IsClass");
76 static_assert(!is_class<char[3]>::value, "IsClass");
78 static_assert(!is_member_function_pointer<int>::value,
80 static_assert(!is_member_function_pointer<int*>::value,
82 static_assert(!is_member_function_pointer<void*>::value,
84 static_assert(!is_member_function_pointer<AStruct>::value,
86 static_assert(!is_member_function_pointer<AStruct*>::value,
88 static_assert(!is_member_function_pointer<void (*)()>::value,
90 static_assert(!is_member_function_pointer<int (*)(int)>::value,
92 static_assert(!is_member_function_pointer<int (*)(int, int)>::value,
95 static_assert(is_member_function_pointer<void (AStruct::*)()>::value,
97 static_assert(is_member_function_pointer<void (AStruct::*)(int)>::value,
99 static_assert(is_member_function_pointer<int (AStruct::*)(int)>::value,
101 static_assert(is_member_function_pointer<int (AStruct::*)(int) const>::value,
103 static_assert(is_member_function_pointer<int (AStruct::*)(int, int)>::value,