This is the array equivalent of StringPiece. It's based on the C++ proposal for span (http://open-std.org/JTC1/SC22/WG21/docs/papers/2016/p0122r1.pdf) which has been implemented in gsl (https://github.com/Microsoft/GSL/blob/master/include/gsl/span).
For now, we'll start with the simplest possible API, to allow spans to be constructed from:
- a pointer + size pair
- a statically sized array
With factory methods for creating spans.
We'll maybe also add:
- a container with data() and size() members (implicit)
Comment 1 by bugdroid1@chromium.org
, Aug 11 2017