]> gcc.gnu.org Git - gcc.git/commit
Add a cut-down version of std::span (array_slice)
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 00:15:02 +0000 (00:15 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 00:15:02 +0000 (00:15 +0000)
commitd4b520d88ee5b4cd446ef001c8fdddd9af8d681c
tree6e56b15fd99731ff3026a7fd95bc6858e076d40c
parent9a0882ef6a265553c8adcc24ce9059546e84b99b
Add a cut-down version of std::span (array_slice)

A later patch wants to be able to pass around subarray views of an
existing array.  The standard class to do that is std::span, but it's
a C++20 thing.  This patch just adds a cut-down version of it.

The intention is just to provide what's currently needed.

gcc/
* vec.h (array_slice): New class.
gcc/vec.h
This page took 0.064079 seconds and 6 git commands to generate.