Abseil Common Libraries for C++
open sourceApache-2.0free
Abseil is Google's collection of C++ libraries that augment the standard library, drawn from code used in Google's production systems: Swiss table hash containers, strings utilities, absl::Status and StatusOr for error handling, absl::Mutex and other synchronization primitives, time and duration types, command-line flags, LOG and CHECK logging macros, hashing, random numbers, 128-bit integers and debugging utilities such as stack traces. It provides versions of C++14, C++17 and later features for code that isn't ready for them, follows a "live at head" release model with compatibility guidelines, and is under the Apache-2.0 licence. A separate Abseil Python library shares the name.
Problems it solves
- faster hash maps than std::unordered_map in C++
- a solid set of C++ string, time and logging utilities the standard library lacks
- use Google-style Status error handling in my C++ code
Features
- Swiss table hash containers (flat_hash_map, flat_hash_set)
- absl::Status and StatusOr error handling
- strings, time, flags and logging libraries
- absl::Mutex and synchronization primitives
- backports of C++14, C++17 and later features
Alternatives
The same job
These do what Abseil does.
- Folly Meta's library of C++20 components
