Abseil Common Libraries (C++); Google (2017).
npm install abseil.cxxbash
$ npm i abseil.cxx
`
And then include abseil as follows:
`cxx
// main.cxx
#include
int main() { / ... / }
`
Finally, compile while adding the path node_modules/taskflow.cxx to your compiler's include paths.
`bash
$ clang++ -I./node_modules/abseil.cxx main.cxx # or, use g++
$ g++ -I./node_modules/abseil.cxx main.cxx
`
You may also use a simpler approach with the cpoach tool, which automatically adds the necessary include paths of all the installed dependencies for your project.
`bash
$ cpoach clang++ main.cxx # or, use g++
$ cpoach g++ main.cxx
`
Building Abseil
Bazel and CMake are the official
build systems for Abseil.
See the quickstart for more information
on building Abseil using the Bazel build system.
If you require CMake support, please check the CMake build
instructions and CMake
Quickstart.
Support
Abseil follows Google's Foundational C++ Support
Policy. See
this
table
for a list of currently supported versions compilers, platforms, and build
tools.
Codemap
Abseil contains the following C++ library components:
* base
The base library contains initialization code and other code which
all other Abseil code depends on. Code within base may not depend on any
other code (other than the C++ standard library).
* algorithm
The algorithm library contains additions to the C++
library and container-based versions of such algorithms.
* cleanup
The cleanup library contains the control-flow-construct-like type
absl::Cleanup which is used for executing a callback on scope exit.
* container
The container library contains additional STL-style containers,
including Abseil's unordered "Swiss table" containers.
* crc The crc library contains code for
computing error-detecting cyclic redundancy checks on data.
* debugging
The debugging library contains code useful for enabling leak
checks, and stacktrace and symbolization utilities.
* flags
The flags library contains code for handling command line flags for
libraries and binaries built with Abseil.
* hash
The hash library contains the hashing framework and default hash
functor implementations for hashable types in Abseil.
* log
The log library contains LOG and CHECK macros and facilities
for writing logged messages out to disk, stderr, or user-extensible
destinations.
* memory
The memory library contains memory management facilities that augment
C++'s library.
* meta
The meta library contains type checks
similar to those available in the C++ library.
* numeric
The numeric library contains 128-bit integer types as well as
implementations of C++20's bitwise math functions.
* profiling
The profiling library contains utility code for profiling C++
entities. It is currently a private dependency of other Abseil libraries.
* random
The random library contains functions for generating pseudorandom
values.
* status
The status library contains abstractions for error handling,
specifically absl::Status and absl::StatusOr.
* strings
The strings library contains a variety of strings routines and
utilities.
* synchronization
The synchronization library contains concurrency primitives (Abseil's
absl::Mutex class, an alternative to std::mutex) and a variety of
synchronization abstractions.
* time
The time library contains abstractions for computing with absolute
points in time, durations of time, and formatting and parsing time within
time zones.
* types
The types library contains non-container utility types.
* utility
The utility` library contains utility and helper code.