2121#include < cassert>
2222#include < cstdint>
2323#include < memory>
24+ #include < span>
2425#include < utility>
2526#include < vector>
2627
3132#include " arrow/type_fwd.h"
3233#include " arrow/util/bit_util.h"
3334#include " arrow/util/macros.h"
34- #include < span>
3535#include " arrow/util/visibility.h"
36-
3736namespace arrow {
3837
3938namespace internal {
@@ -577,11 +576,11 @@ struct ARROW_EXPORT ArraySpan {
577576 // / this array type
578577 // / \return A span<const T> of the requested length
579578 template <typename T>
580- util ::span<const T> GetSpan (int i, int64_t length) const {
579+ std ::span<const T> GetSpan (int i, int64_t length) const {
581580 const int64_t buffer_length = buffers[i].size / static_cast <int64_t >(sizeof (T));
582581 assert (i > 0 && length + offset <= buffer_length);
583582 ARROW_UNUSED (buffer_length);
584- return util ::span<const T>(buffers[i].data_as <T>() + this ->offset , length);
583+ return std ::span<const T>(buffers[i].data_as <T>() + this ->offset , length);
585584 }
586585
587586 // / \brief Access a buffer's data as a span
@@ -593,11 +592,11 @@ struct ARROW_EXPORT ArraySpan {
593592 // / this array type
594593 // / \return A span<T> of the requested length
595594 template <typename T>
596- util ::span<T> GetSpan (int i, int64_t length) {
595+ std ::span<T> GetSpan (int i, int64_t length) {
597596 const int64_t buffer_length = buffers[i].size / static_cast <int64_t >(sizeof (T));
598597 assert (i > 0 && length + offset <= buffer_length);
599598 ARROW_UNUSED (buffer_length);
600- return util ::span<T>(buffers[i].mutable_data_as <T>() + this ->offset , length);
599+ return std ::span<T>(buffers[i].mutable_data_as <T>() + this ->offset , length);
601600 }
602601
603602 inline bool IsNull (int64_t i) const { return !IsValid (i); }
@@ -709,7 +708,7 @@ struct ARROW_EXPORT ArraySpan {
709708 // / sizeof(shared_ptr<Buffer>).
710709 // /
711710 // / \see HasVariadicBuffers
712- util ::span<const std::shared_ptr<Buffer>> GetVariadicBuffers () const ;
711+ std ::span<const std::shared_ptr<Buffer>> GetVariadicBuffers () const ;
713712 bool HasVariadicBuffers () const ;
714713
715714 private:
0 commit comments