mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
This change reorders the data members of std::span so that span<byte> is layout-compatible with common implementations of struct iovec. This will allow span<byte> to be used directly in places that use a struct iovec to do scatter-gather I/O. It's important to note that POSIX doesn't specify the order of members in iovec. Also the equivalent type on Windows has members in the other order, and uses type ULONG (which is always 32-bit whereas size_t is 64-bit for Win64). So this change will only help for certain targets and an indirection between std::span and I/O system calls will still be needed for the general case. libstdc++-v3/ChangeLog: PR libstdc++/95609 * include/std/span (span): Reorder data members to match common implementations of struct iovec. * testsuite/23_containers/span/layout_compat.cc: New test.
file: libstdc++-v3/README New users may wish to point their web browsers to the file index.html in the 'doc/html' subdirectory. It contains brief building instructions and notes on how to configure the library in interesting ways.