apache / arrow

Apache Arrow is the universal columnar format and multi-language toolbox for fast data interchange and in-memory analytics
https://arrow.apache.org/
Apache License 2.0
14.63k stars 3.56k forks source link

[C++] APIs taking a `const vector<T>&` argument should instead take a `span<const T>` #44795

Open pitrou opened 1 day ago

pitrou commented 1 day ago

Describe the enhancement requested

arrow::util::span (a backport of C++20 std::span) is more generally applicable than std::vector, so any public API currently accepting a vector const-ref argument should instead accept a span argument.

This could be broken down into several subtasks or PRs if deemed convenient.

Component(s)

C++