This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[ PATCH ] C++20 <span>


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

Notes:
- __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

Attachment: ThePhD.span.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]