blob: 264c4b3feaeff849cdc703b8d06b603d67f49a7c [file] [log] [blame] [view]
mistergc2e75482017-09-19 16:54:40 -04001# Abseil - C++ Common Libraries
2
3The repository contains the Abseil C++ library code. Abseil is an open-source
4collection of C++ code (compliant to C++11) designed to augment the C++
5standard library.
6
7## Table of Contents
8
9- [About Abseil](#about)
Abseil Team475d64f2018-04-09 10:01:14 -070010- [Quickstart](#quickstart)
11- [Building Abseil](#build)
Abseil Team4611a602020-12-22 06:25:57 -080012- [Support](#support)
mistergc2e75482017-09-19 16:54:40 -040013- [Codemap](#codemap)
Abseil Team4611a602020-12-22 06:25:57 -080014- [Releases](#releases)
mistergc2e75482017-09-19 16:54:40 -040015- [License](#license)
16- [Links](#links)
17
18<a name="about"></a>
19## About Abseil
20
21Abseil is an open-source collection of C++ library code designed to augment
22the C++ standard library. The Abseil library code is collected from Google's
23own C++ code base, has been extensively tested and used in production, and
24is the same code we depend on in our daily coding lives.
25
26In some cases, Abseil provides pieces missing from the C++ standard; in
27others, Abseil provides alternatives to the standard for special needs
28we've found through usage in the Google code base. We denote those cases
29clearly within the library code we provide you.
30
31Abseil is not meant to be a competitor to the standard library; we've
32just found that many of these utilities serve a purpose within our code
33base, and we now want to provide those resources to the C++ community as
34a whole.
35
Abseil Team475d64f2018-04-09 10:01:14 -070036<a name="quickstart"></a>
37## Quickstart
38
39If you want to just get started, make sure you at least run through the
40[Abseil Quickstart](https://abseil.io/docs/cpp/quickstart). The Quickstart
41contains information about setting up your development environment, downloading
42the Abseil code, running tests, and getting a simple binary working.
43
44<a name="build"></a>
45## Building Abseil
46
Abseil Team4611a602020-12-22 06:25:57 -080047[Bazel](https://bazel.build) and [CMake](https://cmake.org/) are the official
48build systems for Abseil.
Abseil Team475d64f2018-04-09 10:01:14 -070049
Abseil Team4611a602020-12-22 06:25:57 -080050See the [quickstart](https://abseil.io/docs/cpp/quickstart) for more information
51on building Abseil using the Bazel build system.
52
53If you require CMake support, please check the [CMake build
54instructions](CMake/README.md) and [CMake
55Quickstart](https://abseil.io/docs/cpp/quickstart-cmake).
56
57## Support
58
59Abseil is officially supported on many platforms. See the [Abseil
60platform support
61guide](https://abseil.io/docs/cpp/platforms/platforms) for details on
62supported operating systems, compilers, CPUs, etc.
Abseil Team475d64f2018-04-09 10:01:14 -070063
mistergc2e75482017-09-19 16:54:40 -040064## Codemap
65
66Abseil contains the following C++ library components:
67
Abseil Team2a62fbd2017-09-25 15:35:12 -070068* [`base`](absl/base/) Abseil Fundamentals
mistergc2e75482017-09-19 16:54:40 -040069 <br /> The `base` library contains initialization code and other code which
70 all other Abseil code depends on. Code within `base` may not depend on any
71 other code (other than the C++ standard library).
Abseil Team2a62fbd2017-09-25 15:35:12 -070072* [`algorithm`](absl/algorithm/)
mistergc2e75482017-09-19 16:54:40 -040073 <br /> The `algorithm` library contains additions to the C++ `<algorithm>`
74 library and container-based versions of such algorithms.
Abseil Teama9a49562021-01-29 12:09:30 -080075* [`cleanup`](absl/cleanup/)
76 <br /> The `cleanup` library contains the control-flow-construct-like type
77 `absl::Cleanup` which is used for executing a callback on scope exit.
Abseil Team2a62fbd2017-09-25 15:35:12 -070078* [`container`](absl/container/)
Abseil Teamc16d5552018-10-22 11:04:58 -070079 <br /> The `container` library contains additional STL-style containers,
80 including Abseil's unordered "Swiss table" containers.
Abseil Team2a62fbd2017-09-25 15:35:12 -070081* [`debugging`](absl/debugging/)
mistergc2e75482017-09-19 16:54:40 -040082 <br /> The `debugging` library contains code useful for enabling leak
Abseil Teamc16d5552018-10-22 11:04:58 -070083 checks, and stacktrace and symbolization utilities.
84* [`hash`](absl/hash/)
85 <br /> The `hash` library contains the hashing framework and default hash
86 functor implementations for hashable types in Abseil.
Abseil Team2a62fbd2017-09-25 15:35:12 -070087* [`memory`](absl/memory/)
mistergc2e75482017-09-19 16:54:40 -040088 <br /> The `memory` library contains C++11-compatible versions of
89 `std::make_unique()` and related memory management facilities.
Abseil Team2a62fbd2017-09-25 15:35:12 -070090* [`meta`](absl/meta/)
mistergc2e75482017-09-19 16:54:40 -040091 <br /> The `meta` library contains C++11-compatible versions of type checks
92 available within C++14 and C++17 versions of the C++ `<type_traits>` library.
Abseil Team2a62fbd2017-09-25 15:35:12 -070093* [`numeric`](absl/numeric/)
mistergc2e75482017-09-19 16:54:40 -040094 <br /> The `numeric` library contains C++11-compatible 128-bit integers.
Igor Poletaev6df644c2020-12-16 11:39:01 -080095* [`status`](absl/status/)
Abseil Team8a9ef3c2020-12-21 04:44:34 -080096 <br /> The `status` contains abstractions for error handling, specifically
Abseil Team1bae23e2020-12-16 11:07:40 -080097 `absl::Status` and `absl::StatusOr<T>`.
Abseil Team2a62fbd2017-09-25 15:35:12 -070098* [`strings`](absl/strings/)
mistergc2e75482017-09-19 16:54:40 -040099 <br /> The `strings` library contains a variety of strings routines and
100 utilities, including a C++11-compatible version of the C++17
101 `std::string_view` type.
Abseil Team2a62fbd2017-09-25 15:35:12 -0700102* [`synchronization`](absl/synchronization/)
mistergc2e75482017-09-19 16:54:40 -0400103 <br /> The `synchronization` library contains concurrency primitives (Abseil's
104 `absl::Mutex` class, an alternative to `std::mutex`) and a variety of
105 synchronization abstractions.
Abseil Team2a62fbd2017-09-25 15:35:12 -0700106* [`time`](absl/time/)
mistergc2e75482017-09-19 16:54:40 -0400107 <br /> The `time` library contains abstractions for computing with absolute
108 points in time, durations of time, and formatting and parsing time within
109 time zones.
Abseil Team2a62fbd2017-09-25 15:35:12 -0700110* [`types`](absl/types/)
111 <br /> The `types` library contains non-container utility types, like a
Abseil Teamd732f202017-10-05 13:33:44 -0700112 C++11-compatible version of the C++17 `std::optional` type.
Abseil Teamc16d5552018-10-22 11:04:58 -0700113* [`utility`](absl/utility/)
114 <br /> The `utility` library contains utility and helper code.
mistergc2e75482017-09-19 16:54:40 -0400115
Abseil Team4611a602020-12-22 06:25:57 -0800116## Releases
117
118Abseil recommends users "live-at-head" (update to the latest commit from the
119master branch as often as possible). However, we realize this philosophy doesn't
120work for every project, so we also provide [Long Term Support
121Releases](https://github.com/abseil/abseil-cpp/releases) to which we backport
122fixes for severe bugs. See our [release
123management](https://abseil.io/about/releases) document for more details.
124
mistergc2e75482017-09-19 16:54:40 -0400125## License
126
127The Abseil C++ library is licensed under the terms of the Apache
128license. See [LICENSE](LICENSE) for more information.
129
130## Links
131
132For more information about Abseil:
133
nik727338b70432019-03-08 10:27:53 -0500134* Consult our [Abseil Introduction](https://abseil.io/about/intro)
135* Read [Why Adopt Abseil](https://abseil.io/about/philosophy) to understand our
mistergc2e75482017-09-19 16:54:40 -0400136 design philosophy.
Abseil Team2a62fbd2017-09-25 15:35:12 -0700137* Peruse our
nik727338b70432019-03-08 10:27:53 -0500138 [Abseil Compatibility Guarantees](https://abseil.io/about/compatibility) to
mistergc2e75482017-09-19 16:54:40 -0400139 understand both what we promise to you, and what we expect of you in return.