Abseil provides reusable C++17 library code collected from Google's internal codebase. It supplements the standard library with missing pieces and alternate implementations tuned for large production codebases.
Overview
Abseil is a set of C++ library modules meant to augment the C++ standard library rather than replace it. The code follows C++17, has been used widely inside Google, and is offered for other C++ projects that want the same utilities.
Components cover initialization and base helpers, extra containers such as Swiss-table hash maps, algorithms, strings, hashing, pseudorandom values, and numeric types including 128-bit integers. Error handling centers on absl::Status and absl::StatusOr. Logging supplies LOG and CHECK macros with flexible output destinations. Synchronization includes absl::Mutex and related concurrency abstractions, while the time module handles absolute times, durations, and time-zone parsing.
Other modules add command-line flag handling for libraries and binaries, CRC computation, debugging and stack symbolization aids, memory helpers, and a flags/logging-oriented cleanup type. Releases follow a live-at-head model with optional long-term support branches for severe fixes.
Projects consume Abseil as a dependency through Bazel or CMake. The authors document where behavior diverges from the standard and describe compatibility expectations for downstream code.
Key features
- Swiss-table unordered containers
- absl::Status and StatusOr errors
- LOG and CHECK logging macros
- Command-line flags library
- absl::Mutex concurrency primitives
- Time zones and duration utilities
- 128-bit integer support
- String and algorithm helpers
Use cases
- Filling gaps in the C++ standard library
- Sharing production-tested C++ utilities
- Building applications with Bazel or CMake