File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,12 @@ namespace xt
35
35
static constexpr std::size_t value = N;
36
36
};
37
37
38
+ template <class T , std::size_t N>
39
+ struct array_size_impl <const_array<T, N>>
40
+ {
41
+ static constexpr std::size_t value = N;
42
+ };
43
+
38
44
template <class C >
39
45
using array_size = array_size_impl<std::decay_t <C>>;
40
46
Original file line number Diff line number Diff line change @@ -52,6 +52,14 @@ namespace xt
52
52
{
53
53
using type = std::allocator<T>; // fake allocator for testing
54
54
};
55
+
56
+
57
+ template <class T , std::size_t N>
58
+ struct allocator_type_impl <const_array<T, N>>
59
+ {
60
+ using type = std::allocator<T>; // fake allocator for testing
61
+ };
62
+
55
63
}
56
64
57
65
template <class T >
Original file line number Diff line number Diff line change @@ -351,6 +351,12 @@ namespace xt
351
351
{
352
352
static constexpr bool value = true ;
353
353
};
354
+
355
+ template <class T , std::size_t N>
356
+ struct is_array <const_array<T, N>>
357
+ {
358
+ static constexpr bool value = true ;
359
+ };
354
360
355
361
template <class S >
356
362
struct is_fixed : std::false_type
You can’t perform that action at this time.
0 commit comments