Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pitrou opened this issue Nov 20, 2024 · 0 comments

Comments

@pitrou
Copy link
Member

pitrou commented Nov 20, 2024

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++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants