[ PATCH ] C++20 <span>

JeanHeyd Meneide phdofthehouse@gmail.com
Fri Aug 30 19:22:00 GMT 2019

This patch implements <span> as it currently exists in the C++20 Working Draft.

- __gnu_cxx::__normal_iterator is not fully constexpr, so its not used here
- P1394 might be slated to end up in C++20 per National Body Comments.
Therefore, an early implementation is left in an
implementation-defined _GLIBCXX_P1394 define.

2019-08-30  JeanHeyd "ThePhD" Meneide  <phdofthehouse@gmail.com>

        * include/std/span: Implement the entirety of span.
        * include/bits/range_access.h: Add __adl_* versions of access functions.
        * testsuite/23_containers/span/everything.cc: constexpr and
non-constexpr tests.
        * include/Makefile.in: Add span to install.
        * include/Makefile.am: Likewise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ThePhD.span.patch
Type: application/octet-stream
Size: 31541 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190830/63210170/attachment.obj>

More information about the Libstdc++ mailing list