File tree Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Expand file tree Collapse file tree 1 file changed +13
-3
lines changed Original file line number Diff line number Diff line change 53
53
54
54
template<class T> struct is_signed; (DONE)
55
55
template<class T> struct is_unsigned; (DONE)
56
- template<class T> struct is_bounded_array;
56
+ template<class T> struct is_bounded_array(DONE) ;
57
57
template<class T> struct is_unbounded_array(DONE);
58
58
template<class T> struct is_scoped_enum; (NOT-APPLICABLE)
59
59
@@ -186,18 +186,22 @@ struct is_same<A,A> : bool_constant<true> {};
186
186
template<class T>
187
187
struct is_void : bool_constant<is_same<T, void >::value> {};
188
188
189
+
189
190
template<class T>
190
- struct is_array : bool_constant<false > {};
191
+ struct is_bounded_array : bool_constant<false > {};
191
192
192
193
template<class T, uint32_t count>
193
- struct is_array <T[count]> : bool_constant<true >{};
194
+ struct is_bounded_array <T[count]> : bool_constant<true >{};
194
195
195
196
template<class T>
196
197
struct is_unbounded_array : bool_constant<false >{};
197
198
198
199
template<class T>
199
200
struct is_unbounded_array<T[]> : bool_constant<true >{};
200
201
202
+ template<class T>
203
+ struct is_array : bool_constant<is_bounded_array<T>::value || is_unbounded_array<T>::value> {};
204
+
201
205
namespace impl
202
206
{
203
207
@@ -339,6 +343,12 @@ using is_void = std::is_void<T>;
339
343
template<class T>
340
344
using is_array = std::is_array<T>;
341
345
346
+ template<class T>
347
+ using is_bounded_array = std::is_bounded_array<T>;
348
+
349
+ template<class T>
350
+ using is_unbounded_array = std::is_unbounded_array<T>;
351
+
342
352
template<class T>
343
353
using is_scalar = std::is_scalar<T>;
344
354
You can’t perform that action at this time.
0 commit comments