abseil-cpp README

The project's README from github.com/abseil/abseil-cpp. As one markdown file: README.md.

Abseil - C++ Common Libraries

The repository contains the Abseil C++ library code. Abseil is an open-source collection of C++ code (compliant to C++17) designed to augment the C++ standard library.

Table of Contents

About Abseil

Abseil is an open-source collection of C++ library code designed to augment the C++ standard library. The Abseil library code is collected from Google's own C++ code base, has been extensively tested and used in production, and is the same code we depend on in our daily coding lives.

In some cases, Abseil provides pieces missing from the C++ standard; in others, Abseil provides alternatives to the standard for special needs we've found through usage in the Google code base. We denote those cases clearly within the library code we provide you.

Abseil is not meant to be a competitor to the standard library; we've just found that many of these utilities serve a purpose within our code base, and we now want to provide those resources to the C++ community as a whole.

Quickstart

If you want to just get started, make sure you at least run through the Abseil Quickstart. The Quickstart contains information about setting up your development environment, downloading the Abseil code, running tests, and getting a simple binary working.

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:

Releases

Abseil recommends users "live-at-head" (update to the latest commit from the master branch as often as possible). However, we realize this philosophy doesn't work for every project, so we also provide Long Term Support Releases to which we backport fixes for severe bugs. See our release management document for more details.

License

The Abseil C++ library is licensed under the terms of the Apache license. See LICENSE for more information.

For more information about Abseil:

abseil-cpp (abseil/abseil-cpp)

Searching Database…

这是什么?Abseil 是 Google 开源的一套 C++ 库代码集合,用于增强 C++ 标准库的功能。它提取自 Google 的内部代码库,包含更好用的容器、字符串工具、时间处理和同步原语等组件。
它是一个框架,还是一组我可以按需挑选的独立库?它是一组相互独立的库组件(如 base、container、strings、time、synchronization 等),你可以单独链接所需的部分,而不是一个会规定你项目架构的框架。
我该如何把它添加到项目中?使用 Bazel 或 CMake(两个官方支持的构建系统),并按照 Abseil Quickstart 配置开发环境、构建一个简单的二进制程序。
我至少需要一个 C++17 编译器吗?需要。Abseil 要求编译器符合 C++17 标准。
Abseil 是否遵循常规的语义化版本管理,并提供稳定的发布分支?不是。Abseil 推荐 'live-at-head',即持续更新到最新的 master 提交;对于无法这样做的用户,它也提供长期支持(LTS)版本,并回移了修复补丁。
Abseil 是要取代 C++ 标准库吗?不是。Abseil 明确表示它不是标准库的竞争者,而是填补空白,并为 Google 代码库中的特殊需求提供替代方案。
absl::Mutex 是什么?我为什么要用它而不是 std::mutex?它是 Abseil 同步库中的并发原语,可作为 std::mutex 的替代品,同时还提供 Google 生产代码中使用的其他同步抽象。
Abseil 是否提供自己的错误处理类型,以替代异常?是的,status 库提供了 absl::Status 和 absl::StatusOr 作为错误处理的抽象。
Swiss table 容器是什么?它们是 Abseil 中无序、高性能、STL 风格的容器,属于 container 库的一部分,与其他附加容器类型并列。
Creator
abseil
Size
22.9 MB
Stars
18.2K
Age
9y
Commits · 90 Days