This allows containers that either optimize based on these concepts or produce lifetime warnings based on them to handle absl::Span appropriately. An example is Chromium's base::span, which warns more aggressively about construction from rvalues that are not borrowed ranges. This only has an effect for codebases using C++20. While many such codebases will presumably also be using std::span directly, they may use absl::Span for backwards compat, or compile against libraries that do so. Also fixes lint's that fired when I tried to edit this. PiperOrigin-RevId: 688552975 Change-Id: I603e04cd74d60ac6b65754ac73037d7f0ab457fe
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| internal | Loading commit data... | |
| BUILD.bazel | Loading commit data... | |
| CMakeLists.txt | Loading commit data... | |
| any.h | Loading commit data... | |
| any_exception_safety_test.cc | Loading commit data... | |
| any_test.cc | Loading commit data... | |
| bad_any_cast.cc | Loading commit data... | |
| bad_any_cast.h | Loading commit data... | |
| bad_optional_access.cc | Loading commit data... | |
| bad_optional_access.h | Loading commit data... | |
| bad_variant_access.cc | Loading commit data... | |
| bad_variant_access.h | Loading commit data... | |
| compare.h | Loading commit data... | |
| compare_test.cc | Loading commit data... | |
| optional.h | Loading commit data... | |
| optional_exception_safety_test.cc | Loading commit data... | |
| optional_test.cc | Loading commit data... | |
| span.h | Loading commit data... | |
| span_test.cc | Loading commit data... | |
| variant.h | Loading commit data... | |
| variant_benchmark.cc | Loading commit data... | |
| variant_exception_safety_test.cc | Loading commit data... | |
| variant_test.cc | Loading commit data... |