While looking into https://github.com/apache/arrow/pull/2481, I noticed this pattern:
It's not the end of the world but seems a little verbose to me. It would be great to have something like this:
I couldn't find it, does it already exist somewhere? Any thoughts on the API? Potentially specializations to make a buffer out of a std::vector<T> would also be helpful.