mirror of
https://github.com/abseil/abseil-cpp.git
synced 2026-06-04 12:07:05 +08:00
`std::span::subspan()` has stricter preconditions than its `absl::` counterpart. Supplying a `len` that would extend beyond the end of the span is undefined behavior for `std::span` (unless `len` is the default `npos` value), whereas `absl::span` simply truncates the result. PiperOrigin-RevId: 836331418 Change-Id: I0e9a11cb434deca0b88d761e8233a44d5a9273ce