Abseil LTS 20250107.rc1
What's New
absl::StringResizeAndOverwrite(): A new function inabsl/strings/resize_and_overwrite.hthat acts as a polyfill for C++23'sstd::basic_string::resize_and_overwrite. This allows for efficient resizing and in-place initialization of strings, avoiding the overhead of default initialization, which is particularly useful when working with C-style APIs that write directly to a buffer. See #1136 (comment) for performance notes.absl::chunked_queue: A new container inabsl/container/chunked_queue.hoptimized for use as a FIFO (First-In, First-Out) queue.absl::linked_hash_mapandabsl::linked_hash_set: New hash containers that maintain iteration order matching the insertion order. These are available inabsl/container/linked_hash_map.handabsl/container/linked_hash_set.h.absl::down_cast: Added toabsl/base/casts.h. This function provides a safer way to perform downcasts in a polymorphic type hierarchy. In debug builds (or when hardened asserts are enabled), it usesdynamic_castto verify the validity of the cast and terminates the program if the cast is invalid. In optimized builds, it usesstatic_castfor performance.
Breaking Changes
- Mutex Deprecations: Legacy
Mutexmethods andMutexLockpointer constructors have been marked as deprecated. Users should migrate to the recommended APIs. - The polyfill type
absl::string_viewis now an alias forstd::string_viewin all builds. (9ebd93a)
Baseline: 1e566d9