[libc] Add a span facility
authorGuillaume Chatelet <gchatelet@google.com>
Fri, 19 Aug 2022 17:52:36 +0000 (17:52 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 22 Aug 2022 07:27:00 +0000 (07:27 +0000)
commit5541e6bc0596df4cab6009d6577c2003dc7b11a5
tree9a5984265d7845da5a6e2c571173cfcab3b77f78
parentd90c1bcdf9a495507d7f1dbf829e8e00344bf12e
[libc] Add a span facility

This is intended to replace ArrayRef.

Differential Revision: https://reviews.llvm.org/D132254
libc/src/__support/CPP/CMakeLists.txt
libc/src/__support/CPP/span.h [new file with mode: 0644]
libc/test/src/__support/CPP/CMakeLists.txt
libc/test/src/__support/CPP/span_test.cpp [new file with mode: 0644]