18.2K ·GitHub
What is this?
Abseil is Google's open-source collection of C++ library code that augments the C++ standard library. It's extracted from Google's internal codebase and includes things like better containers, string utilities, time handling, and synchronization primitives.
Is it a framework, or a set of independent libraries I pick and choose from?
It's a collection of independent library components (base, container, strings, time, synchronization, etc.) you link individually, not a framework that dictates your architecture.
How do I add it to a project?
Use Bazel or CMake, the two officially supported build systems, and follow the Abseil Quickstart for setting up your dev environment and building a simple binary.
Do I need a C++17 compiler at least?
Yes, Abseil requires a compiler compliant with C++17.
Does Abseil follow normal semantic versioning with stable release branches?
No. Abseil recommends 'live-at-head', continuously updating to the latest master commit; it does offer Long Term Support Releases with backported fixes for those who can't do that.
Is Abseil meant to replace the C++ standard library?
No. Abseil explicitly says it is not a competitor to the standard library — it fills gaps and offers alternatives for special needs found in Google's codebase.
What's absl::Mutex, and why would I use it over std::mutex?
It's Abseil's concurrency primitive from the synchronization library, offered as an alternative to std::mutex along with other synchronization abstractions used in Google's production code.
Does Abseil provide its own error-handling type instead of exceptions?
Yes, the status library provides absl::Status and absl::StatusOr as abstractions for error handling.
What are the Swiss table containers?
They're Abseil's unordered, high-performance STL-style containers, part of the container library alongside other additional container types.
What are similar projects?
mediapipe, googletest, fmt, simdjson, SFML, flatbuffers, sqlitebrowser, electron
Which topics is it in?
apache, c-plus-plus, google, sqlite, sdk, cpp, utility, c++, performance, framework, library, cross-platform