|
12 | 12 | #ifndef XSIMD_BATCH_CONSTANT_HPP |
13 | 13 | #define XSIMD_BATCH_CONSTANT_HPP |
14 | 14 |
|
| 15 | +#include <cstddef> |
| 16 | + |
15 | 17 | #include "./xsimd_batch.hpp" |
16 | 18 | #include "./xsimd_utils.hpp" |
17 | 19 |
|
@@ -45,7 +47,7 @@ namespace xsimd |
45 | 47 | */ |
46 | 48 | constexpr operator batch_type() const noexcept { return as_batch_bool(); } |
47 | 49 |
|
48 | | - constexpr bool get(size_t i) const noexcept |
| 50 | + constexpr bool get(std::size_t i) const noexcept |
49 | 51 | { |
50 | 52 | return std::array<value_type, size> { { Values... } }[i]; |
51 | 53 | } |
@@ -77,7 +79,7 @@ namespace xsimd |
77 | 79 | constexpr bool operator()(bool x, bool y) const { return x ^ y; } |
78 | 80 | }; |
79 | 81 |
|
80 | | - template <class F, class SelfPack, class OtherPack, size_t... Indices> |
| 82 | + template <class F, class SelfPack, class OtherPack, std::size_t... Indices> |
81 | 83 | static constexpr batch_bool_constant<T, A, F()(std::tuple_element<Indices, SelfPack>::type::value, std::tuple_element<Indices, OtherPack>::type::value)...> |
82 | 84 | apply(detail::index_sequence<Indices...>) |
83 | 85 | { |
@@ -149,13 +151,13 @@ namespace xsimd |
149 | 151 | /** |
150 | 152 | * @brief Get the @p i th element of this @p batch_constant |
151 | 153 | */ |
152 | | - constexpr T get(size_t i) const noexcept |
| 154 | + constexpr T get(std::size_t i) const noexcept |
153 | 155 | { |
154 | 156 | return get(i, std::array<T, size> { Values... }); |
155 | 157 | } |
156 | 158 |
|
157 | 159 | private: |
158 | | - constexpr T get(size_t i, std::array<T, size> const& values) const noexcept |
| 160 | + constexpr T get(std::size_t i, std::array<T, size> const& values) const noexcept |
159 | 161 | { |
160 | 162 | return values[i]; |
161 | 163 | } |
@@ -193,7 +195,7 @@ namespace xsimd |
193 | 195 | constexpr T operator()(T x, T y) const { return x ^ y; } |
194 | 196 | }; |
195 | 197 |
|
196 | | - template <class F, class SelfPack, class OtherPack, size_t... Indices> |
| 198 | + template <class F, class SelfPack, class OtherPack, std::size_t... Indices> |
197 | 199 | static constexpr batch_constant<T, A, F()(std::tuple_element<Indices, SelfPack>::type::value, std::tuple_element<Indices, OtherPack>::type::value)...> |
198 | 200 | apply(detail::index_sequence<Indices...>) |
199 | 201 | { |
@@ -253,7 +255,7 @@ namespace xsimd |
253 | 255 | constexpr bool operator()(T x, T y) const { return x <= y; } |
254 | 256 | }; |
255 | 257 |
|
256 | | - template <class F, class SelfPack, class OtherPack, size_t... Indices> |
| 258 | + template <class F, class SelfPack, class OtherPack, std::size_t... Indices> |
257 | 259 | static constexpr batch_bool_constant<T, A, F()(std::tuple_element<Indices, SelfPack>::type::value, std::tuple_element<Indices, OtherPack>::type::value)...> |
258 | 260 | apply_bool(detail::index_sequence<Indices...>) |
259 | 261 | { |
|
0 commit comments