# cpp_new_features **Repository Path**: baseme/cpp_new_features ## Basic Information - **Project Name**: cpp_new_features - **Description**: 2021年最新整理, C++ 学习资料,含C++ 11 / 14 / 17 / 20 / 23 新特性、入门教程、推荐书籍、优质文章、学习笔记、教学视频等 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2025-07-04 - **Last Updated**: 2025-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 🌞🌞🌞 2021年最新整理, C++ 学习资料,含C++ 11 / 14 / 17 / 20 / 23 新特性、入门教程、推荐书籍、优质文章、学习笔记、教学视频等
## 🚀 直达 [(# C++11)](#cpp_11) [(# C++14)](#cpp_14) [(# C++17)](#cpp_17) [(# C++20)](#cpp_20) [(# C++23)](#cpp_23)
# 🔥🔥🔥 [【重磅推荐收藏:C++ 参考手册】](https://c-cpp.com/cpp) - 11~20你想要查的,他都有 # 🌋 C++ 发展历程 * C++ 编程语言的历史可以追溯到 **1979 年**,当时 Bjarne Stroustrup 为博士学位论文进行了一些开发。在 Stroustrup 可以使用的所有语言中,有一种被称为 Simula 的语言,顾名思义,它可能是一种主要为仿真而设计的语言。Simula 67 语言是 Stroustrup 使用的变体,被认为是支持面向对象编程范例的主要语言。Stroustrup 发现这种范例对包装开发很有帮助。但是,Simula 语言对于实践和实际使用而言太慢了。 随后不久,Bjarne Stroustrup 希望通过支持面向对象范例来增强 C。他深入研究了 Smalltalk 的 OO 实现,以获取有关实现的想法。但是他不愿意为此放弃性能,因此他开始从事 “C with Classes (带有类的 C)” 的工作,希望 C++ 代码运行时应具有与 C 代码相似(或更好)的性能。 * **1983 年**,语言的名称从 “带有类的 C” 更改为 C++。C 语言中的 ++ 运算符是用于递增变量的运算符,它使您可以深入了解 Stroustrup 如何看待该语言。在此期间添加了许多新功能,其中最引人注目的是虚函数,函数重载,带有&符号的引用,const 关键字和使用两个正斜杠的单行注释。 * **1985 年**,Stroustrup 出版了名为*“C++ 编程语言” 的书籍*。同年,C++ 被实现为商业产品。该语言尚未正式标准化,因此使该书成为非常重要的参考。该语言在 1989 年再次进行了更新,以包括受保护的成员和静态成员,以及从多个类的继承。 * **1990 年**,发行了*《带注释的 C++ 参考手册*》。同年,Borland 的 Turbo C++ 编译器将作为商业产品发布。Turbo C++ 添加了许多其他库,这些库会对 C++ 的开发产生相当大的影响。尽管 Turbo C++ 的最后一个稳定版本是 2006 年,但该编译器仍被广泛使用。 * **1998 年**,C++ 标准委员会发布了第一个 C++ ISO / IEC 14882:1998 国际标准,其非正式名称为 C++ 98。据说*《带注释的 C++ 参考手册*》对标准的制定产生了很大的影响。还包括标准模板库,该模板库于 1979 年开始概念开发。2003 年,该委员会对 1998 年标准所报告的多个问题做出了回应,并对其进行了相应的修订。更改的语言称为 C++ 03。 * **2005 年**,C++ 标准委员会发布了一份技术报告(称为 TR1),详细介绍了他们计划添加到最新 C++ 标准中的各种功能。新标准被非正式地称为 C++ 0x,因为它有望在第一个十年结束之前的某个时间发布。具有讽刺意味的是,新标准要到 2011 年年中才会发布。直到那时为止,已经发布了几份技术报告,并且一些编译器开始为新功能添加实验性支持。 * **2011 年中**,新的 C++ 标准(称为 C++ 11)完成。Boost 库项目对新标准产生了重大影响,其中一些新模块直接来自相应的 Boost 库。一些新功能包括正则表达式支持,全面的随机化库,新的 C++ 时间库,原子支持,标准线程库 ,一种新的 for 循环语法,提供的功能类似于某些其他语言中的 foreach 循环,auto 关键字,新的容器类,对联合和数组初始化列表以及可变参数模板的更好支持。 * **2014 年**,C++ 14(也称为 C++ 1y)作为 C++11 的一个小扩展发布,主要功能是错误修复和小的改进,国际标准投票程序草案于 2014 年 8 月中完成,加强 lambda 函数,constexpr 和类型推导特性。 * **2017 年**,发布 C17 标准,C17 提供了很多东西。增强了核心语言和库。 * **2020 年**,发布 C++20 标准,推出了很多重量级功能,其中比较重要的有: - Concepts:概念改变了我们思考和编程模板的方式。它们是模板参数的语义类别。它们使您可以直接在类型系统中表达您的意图。如果出了什么问题,您会收到清晰的错误消息。 - Ranges library:新的 ranges 库使它可以直接在容器上执行算法,用管道符号组成算法,并将其应用于无限数据流。 - Coroutines:由于协程,C++ 中的异步编程成为主流。协程是协作任务,事件循环,无限数据流或管道的基础。 - Modules:模块克服了头文件的限制。头文件和源文件的分离变得和预处理器一样过时了。最后,我们有更快的构建时间和更轻松的构建软件包的方法。 - Concurrency:Atomic Smart Pointers,Joining & Cancellable Threads,The C20 Synchronization Library,增强了 C++ 并发编程能力;
--- # 🚪 入门教程 ### [C++ 入门教程(41课时) - 阿里云大学](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md) * [C++ 教程](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%99%E7%A8%8B) * [C++ 简介](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E7%AE%80%E4%BB%8B) * [C++ 环境设置](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E7%8E%AF%E5%A2%83%E8%AE%BE%E7%BD%AE) * [C++ 基本语法](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95) * [C++ 注释](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%B3%A8%E9%87%8A) * [C++ 数据类型](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B) * [C++ 变量类型](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%8F%98%E9%87%8F%E7%B1%BB%E5%9E%8B) * [C++ 变量作用域](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%8F%98%E9%87%8F%E4%BD%9C%E7%94%A8%E5%9F%9F) * [C++ 常量](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%B8%B8%E9%87%8F) * [C++ 修饰符类型](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E4%BF%AE%E9%A5%B0%E7%AC%A6%E7%B1%BB%E5%9E%8B) * [C++ 存储类](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%AD%98%E5%82%A8%E7%B1%BB) * [C++ 运算符](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E8%BF%90%E7%AE%97%E7%AC%A6) * [C++ 循环](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%BE%AA%E7%8E%AF) * [C++ 判断](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%88%A4%E6%96%AD) * [C++ 函数](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%87%BD%E6%95%B0) * [C++ 数字](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%B0%E5%AD%97) * [C++ 数组](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%B0%E7%BB%84) * [C++ 字符串](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%AD%97%E7%AC%A6%E4%B8%B2) * [C++ 指针](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%8C%87%E9%92%88) * [C++ 引用](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%BC%95%E7%94%A8) * [C++ 日期 & 时间](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%97%A5%E6%9C%9F--%E6%97%B6%E9%97%B4) * [C++ 基本的输入输出](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%9F%BA%E6%9C%AC%E7%9A%84%E8%BE%93%E5%85%A5%E8%BE%93%E5%87%BA) * [C++ 数据结构](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84) * [C++ 类 & 对象](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E7%B1%BB--%E5%AF%B9%E8%B1%A1) * [C++ 继承](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E7%BB%A7%E6%89%BF) * [C++ 重载运算符和重载函数](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E9%87%8D%E8%BD%BD%E8%BF%90%E7%AE%97%E7%AC%A6%E5%92%8C%E9%87%8D%E8%BD%BD%E5%87%BD%E6%95%B0) * [C++ 多态](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%A4%9A%E6%80%81) * [C++ 数据抽象](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%B0%E6%8D%AE%E6%8A%BD%E8%B1%A1) * [C++ 数据封装](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%95%B0%E6%8D%AE%E5%B0%81%E8%A3%85) * [C++ 接口(抽象类)](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%8E%A5%E5%8F%A3%E6%8A%BD%E8%B1%A1%E7%B1%BB) * [C++ 文件和流](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%96%87%E4%BB%B6%E5%92%8C%E6%B5%81) * [C++ 异常处理](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%BC%82%E5%B8%B8%E5%A4%84%E7%90%86) * [C++ 动态内存](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%8A%A8%E6%80%81%E5%86%85%E5%AD%98) * [C++ 命名空间](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%91%BD%E5%90%8D%E7%A9%BA%E9%97%B4) * [C++ 模板](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%A8%A1%E6%9D%BF) * [C++ 预处理器](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E9%A2%84%E5%A4%84%E7%90%86%E5%99%A8) * [C++ 信号处理](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E4%BF%A1%E5%8F%B7%E5%A4%84%E7%90%86) * [C++ 多线程](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E5%A4%9A%E7%BA%BF%E7%A8%8B) * [C++ Web 编程](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-web-%E7%BC%96%E7%A8%8B) * [C++ STL 教程](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-stl-%E6%95%99%E7%A8%8B) * [C++ 标准库](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%20%E5%85%A5%E9%97%A8%E6%95%99%E7%A8%8B%EF%BC%8841%E8%AF%BE%E6%97%B6%EF%BC%89%20-%20%E9%98%BF%E9%87%8C%E4%BA%91%E5%A4%A7%E5%AD%A6.md#c-%E6%A0%87%E5%87%86%E5%BA%93) ### [C++ 学习笔记](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0.md) * [一、基础知识](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0.md#%E4%B8%80%E5%9F%BA%E7%A1%80%E7%9F%A5%E8%AF%86) * 1、goto 语句(不建议使用) * 2、一维数组 * 3、二维数组 * 4、函数中的值传递 * 5、函数的声明 * 6、函数的分文件编写 * 7、指针 * 7.1 指针的基本概念 * 7.2 指针变量的定义和使用 * 7.3 指针所占内存空间 * 7.4 空指针和野指针 * 7.5 const修饰指针 * 7.6 指针和数组 * 7.7 指针和函数 * 7.8 指针、数组、函数 * 8、结构体 * 8.1 结构体基本概念 * 8.2 结构体定义和使用 * 8.3 结构体数组 * 8.4 结构体指针 * 8.5 结构体嵌套结构体 * 8.6 结构体做函数参数 * 8.7 结构体中 const使用场景 * [二、核心编程](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0.md#%E4%BA%8C%E6%A0%B8%E5%BF%83%E7%BC%96%E7%A8%8B) * 1、内存分区模型 * 1.1 程序运行前 * 1.2 程序运行后 * 1.3 new操作符 * 2、引用 * 2.1 引用的基本使用 * 2.2 引用注意事项 * 2.3 引用做函数参数 * 2.4 引用做函数返回值 * 2.5 引用的本质 * 2.6 常量引用 * 3、函数 * 3.1 函数默认参数 * 3.2 函数占位参数 * 3.3 函数重载 # 📚 书籍推荐 * [《深入理解C++11:C++11新特性解析与应用》](https://www.aliyundrive.com/s/LKc1X2mL9G9) * [《C++入门经典(第10版)》](https://book.douban.com/subject/30247747/) * [《C++ Primer Plus 第6版 中文版(异步图书出品)》](https://www.epubit.com/bookDetails?id=UB7209840d845c9) * [《清华计算机图书译丛:精通C++(第9版)》](https://item.jd.com/12432130.html) * [《C++高级编程(第4版)》](http://www.tup.tsinghua.edu.cn/booksCenter/book_07894801.html) * [《C++游戏编程入门(第4版)(异步图书出品)》](https://item.jd.com/13265350.html) * [《STL源码剖析》](https://book.douban.com/subject/1110934/) * [《C++程序设计:原理与实践(基础篇)(原书第2版)》](https://book.douban.com/subject/27023080/) * [《Accelerated C++中文版》](https://book.douban.com/subject/2280545//) * [《C++编程思想(两卷合订本)》](https://book.douban.com/subject/6558198/) * [《中文版Effective STL:50条有效使用STL的经验》](https://book.douban.com/subject/1792179/) * [《C++编程剖析:问题、方案和设计准则》](https://book.douban.com/subject/5367371/) * [《C++ Templates中文版》](https://book.douban.com/subject/1144020/) * [《C++设计新思维》](https://book.douban.com/subject/1103566/) * [《C++模板元编程》](https://book.douban.com/subject/4136223/) * [《C++并发编程实战》](https://book.douban.com/subject/26386925/) * [《C++程序设计语言(第1-3部分)(原书第4版)》](https://book.douban.com/subject/26857943/) * [《C++标准库(第2版)》](https://book.douban.com/subject/26419721/) * [《Essential C++》](https://book.douban.com/subject/24868427/) * [《C++ 语言的设计与演化》](https://book.douban.com/subject/1096216/) * [《深度探索C++ 对象模型》](https://book.douban.com/subject/1091086/) * [《泛型编程与STL》](https://book.douban.com/subject/1241423/) # 📰 文章推荐 * [每个c++开发人员都应该使用的10个c++11特性](https://github.com/0voice/cpp_new_features/blob/main/%E6%AF%8F%E4%B8%AAc%2B%2B%E5%BC%80%E5%8F%91%E4%BA%BA%E5%91%98%E9%83%BD%E5%BA%94%E8%AF%A5%E4%BD%BF%E7%94%A8%E7%9A%8410%E4%B8%AAc%2B%2B%2011%E7%89%B9%E6%80%A7.md) * [在c++项目中你必须真正使用的15个c++11特性](https://github.com/0voice/cpp_new_features/blob/main/%E5%9C%A8c%2B%2B%E9%A1%B9%E7%9B%AE%E4%B8%AD%E4%BD%A0%E5%BF%85%E9%A1%BB%E7%9C%9F%E6%AD%A3%E4%BD%BF%E7%94%A8%E7%9A%8415%E4%B8%AAc%2B%2B%E7%89%B9%E6%80%A7.md) * [如何在 C++11 中使用 Lambda 表达式](https://github.com/0voice/cpp_new_features/blob/main/%E5%A6%82%E4%BD%95%E5%9C%A8%20C%2B%2B11%20%E4%B8%AD%E4%BD%BF%E7%94%A8%20Lambda%20%E8%A1%A8%E8%BE%BE%E5%BC%8F.md) * [深入理解C++11](https://github.com/0voice/cpp_new_features/blob/main/%E6%B7%B1%E5%85%A5%E7%90%86%E8%A7%A3C%2B%2B11.md) * [吐血整理:C++11新特性](https://github.com/0voice/cpp_new_features/blob/main/%E5%90%90%E8%A1%80%E6%95%B4%E7%90%86%EF%BC%9AC%2B%2B11%E6%96%B0%E7%89%B9%E6%80%A7.md) * [C++11新特性之auto和decltype知识点](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7%E4%B9%8Bauto%E5%92%8Cdecltype%E7%9F%A5%E8%AF%86%E7%82%B9) * [C++11新特性之左值引用、右值引用、移动语义、完美转发](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7%E4%B9%8B%E5%B7%A6%E5%80%BC%E5%BC%95%E7%94%A8%E5%8F%B3%E5%80%BC%E5%BC%95%E7%94%A8%E7%A7%BB%E5%8A%A8%E8%AF%AD%E4%B9%89%E5%AE%8C%E7%BE%8E%E8%BD%AC%E5%8F%91) * [C++11新特性之列表初始化](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7%E4%B9%8B%E5%88%97%E8%A1%A8%E5%88%9D%E5%A7%8B%E5%8C%96) * [C++11新特性std::function和lambda表达式](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7stdfunction%E5%92%8Clambda%E8%A1%A8%E8%BE%BE%E5%BC%8F) * [C++11新特性之模板改进](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7%E4%B9%8B%E6%A8%A1%E6%9D%BF%E6%94%B9%E8%BF%9B) * [C++11新特性之线程相关知识点](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7%E4%B9%8B%E7%BA%BF%E7%A8%8B%E7%9B%B8%E5%85%B3%E7%9F%A5%E8%AF%86%E7%82%B9) * [C++11新特性之异步操作-async](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11-%E7%9A%84%E5%BC%82%E6%AD%A5%E6%93%8D%E4%BD%9C-async) * [C++11新特性之智能指针](https://github.com/0voice/cpp_new_features/blob/main/%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0%EF%BC%9AC++%2011%E6%96%B0%E7%89%B9%E6%80%A7.md#c11%E6%96%B0%E7%89%B9%E6%80%A7%E4%B9%8B%E6%99%BA%E8%83%BD%E6%8C%87%E9%92%88) * [C++11常用新特性(一)](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B11%E5%B8%B8%E7%94%A8%E6%96%B0%E7%89%B9%E6%80%A7%EF%BC%88%E4%B8%80%EF%BC%89.md) * [C++11常用新特性(二)](https://github.com/0voice/cpp_new_features/blob/main/C++11%E5%B8%B8%E7%94%A8%E6%96%B0%E7%89%B9%E6%80%A7%EF%BC%88%E4%BA%8C%EF%BC%89.md) * [C++14新特性浅谈](https://github.com/0voice/cpp_new_features/blob/main/%E3%80%8CNotes%E3%80%8DC%2B%2B14%E6%96%B0%E7%89%B9%E6%80%A7%E6%B5%85%E8%B0%88.md) * [C++14新特性的所有知识点全在这儿啦](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B14%E6%96%B0%E7%89%B9%E6%80%A7%E7%9A%84%E6%89%80%E6%9C%89%E7%9F%A5%E8%AF%86%E7%82%B9%E5%85%A8%E5%9C%A8%E8%BF%99%E5%84%BF%E5%95%A6%EF%BC%81.md) * [总结归纳:C++17新特性](https://github.com/0voice/cpp_new_features/blob/main/%E6%80%BB%E7%BB%93%E5%BD%92%E7%BA%B3%EF%BC%9AC%2B%2B17%E6%96%B0%E7%89%B9%E6%80%A7.md) * [C++ 20语言特性](https://github.com/0voice/cpp_new_features/blob/main/C%2B%2B%2020%E8%AF%AD%E8%A8%80%E7%89%B9%E6%80%A7.md) # ▶ 教学视频 #### [【GeekBand】侯捷 - C++面向对象高级编程](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P1 C++编程简介](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P2 头文件与类的声明](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P3 构造函数](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P4 参数传递与返回值](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P5 操作符重载与临时对象](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P6 复习Complex类的实现过程](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P7 三大函数:拷贝构造,拷贝复制,析构](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P8 堆,栈与内存管理](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P9 复习String类的实现过程](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P10 扩展补充:类模板,函数模板,及其他](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P11 组合与继承](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P13 委托相关设计](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P14 1 导读](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P15 2 conversion function](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P16 3 non explicit one argument constructor](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P17 4 pointer like classes](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P18 5 function like classes](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P19 6 namespace经验谈](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P20 7 class template](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P21 8 Funtion Template](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P22 9 Member Template](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P23 10 specialization](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P24 11 模板偏特化](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P25 12 模板模板参数](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P26 13 关于C++标准库](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P27 14 三个主题](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P28 15 Reference](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P29 16 复合&继承关系下的构造和析构](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P30 17 关于vptr和vtbl](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P31 18 关于this](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P32 19 0 关于Dynamic Binding](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P33 19 1 关于Dynamic Binding](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P34 20 关于New,Delete](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P35 21 Operator new,operator delete](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P36 22 示例](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P37 23 重载new,delete$示例](https://www.aliyundrive.com/s/HapPXxjQ1U7) * [P38 24 Basic String使用newextra扩充申请量](https://www.aliyundrive.com/s/HapPXxjQ1U7) # 🌰 干货铺 * [C++ Standard Library](http://en.wikipedia.org/wiki/C%2B%2B_Standard_Library) - 一系列类和函数的集合,使用核心语言编写,也是C++ISO自身标准的一部分 * [Standard Template Library](https://en.wikipedia.org/wiki/Standard_Template_Library) - 标准模板库 * [C POSIX library](https://en.wikipedia.org/wiki/C_POSIX_library) - POSIX系统的C标准库规范 * [ISO C++ Standards Committee](https://github.com/cplusplus) - C++标准委员会 * [C++ FAQ](https://isocpp.org/faq) − C++ 常见问题 * [Free Country](https://www.thefreecountry.com/sourcecode/cpp.shtml?spm=5176.10731542.0.0.4fc35bde2jHhz4) − Free Country 提供了免费的 C++ 源代码和 C++ 库,这些源代码和库涵盖了压缩、存档、游戏编程、标准模板库和 GUI 编程等 C++ 编程领域。 * [C and C++ Users Group](http://www.hal9k.com/cug/?spm=5176.10731542.0.0.4fc35bde2jHhz4) − C 和 C++ 的用户团体提供了免费的涵盖各种编程领域 C++ 项目的源代码,包括 AI、动画、编译器、数据库、调试、加密、游戏、图形、GUI、语言工具、系统编程等 * [LearnCpp](https://www.learncpp.com/) - 免费学习c++编程 * [CodeCogs](https://www.codecogs.com/) - CodeCogs是一项协作的开放源码库,C/C++的数值方面的组件 * [codeproject](https://www.codeproject.com/) - codeproject提供的C/C++资源代码项目 * [thoughtco](https://www.thoughtco.com/c-and-c-plus-programming-4133470) - 游戏有关的C++源代码 * [Free C/C++ Libraries](https://www.programmerworld.net/resources/c_library.htm) - 免费C++源代码和其它有用的工具 * [The C++ Standard Library](http://www.josuttis.com/libbook/examples.html) - 这是一个收集了数C/C++网站链接列表的网页 * [cplusplus](http://www.cplusplus.com/) - C++学习网站 * [C++ Source Codes](https://people.sc.fsu.edu/~jburkardt/cpp_src/cpp_src.html) - 这是一个全面的关于C++的345个源代码清单 # 🗜 框架 * [Apache C++ Standard Library](http://stdcxx.apache.org/) : 是一系列算法,容器,迭代器和其他基本组件的集合 * [ASL](http://stlab.adobe.com/) : Adobe源代码库提供了同行的评审和可移植的C++源代码库。 * [Boost](https://github.com/boostorg) : 大量通用C++库的集合。 * [BDE](https://github.com/bloomberg/bde) : 来自于彭博资讯实验室的开发环境。 * [Cinder](https://libcinder.org/) : 提供专业品质创造性编码的开源开发社区。 * [Bxxomfort](http://ryan.gulix.cl/fossil.cgi/cxxomfort/index) : 轻量级的,只包含头文件的库,将C++ 11的一些新特性移植到C++03中。 * [Dlib](http://dlib.net/) : 使用契约式编程和现代C++科技设计的通用的跨平台的C++库。 * [EASTL](https://github.com/paulhodge/EASTL) : EA-STL公共部分 * [ffead-cpp](https://github.com/sumeetchhetri/ffead-cpp) : 企业应用程序开发框架 * [Folly](https://github.com/facebook/folly) : 由Facebook开发和使用的开源C++库。 * [JUCE](https://github.com/WeAreROLI/JUCE) : 包罗万象的C++类库,用于开发跨平台软件 * [libphenom](https://github.com/facebookarchive/libphenom) : 用于构建高性能和高度可扩展性系统的事件框架。 * [LibSourcey](https://github.com/sourcey/libsourcey) : 用于实时的视频流和高性能网络应用程序的C++11 evented IO * [Loki](http://loki-lib.sourceforge.net/) : C++库的设计,包括常见的设计模式和习语的实现。 * [MiLi](https://code.google.com/p/mili/) : 只含头文件的小型C++库 * [openFrameworks](https://openframeworks.cc/) : 开发C++工具包,用于创意性编码。 * [Qt](https://www.qt.io/developers/) : 跨平台的应用程序和用户界面框架 * [Reason](http://code.google.com/p/reason/) : 跨平台的框架,使开发者能够更容易地使用Java,.Net和Python,同时也满足了他们对C++性能和优势的需求。 * [ROOT](https://root.cern.ch/) : 具备所有功能的一系列面向对象的框架,能够非常高效地处理和分析大量的数据,为欧洲原子能研究机构所用。 * [STLport](http://www.stlport.org/) : 是STL具有代表性的版本 * [STXXL](http://stxxl.sourceforge.net/) : 用于额外的大型数据集的标准模板库。 * [Ultimate++](https://www.ultimatepp.org/) : C++跨平台快速应用程序开发框架 * [Windows Template Library](https://sourceforge.net/projects/wtl/) : 用于开发Windows应用程序和UI组件的C++库 * [Yomm11](https://github.com/jll63/yomm11) : C++11的开放multi-methods.
### 异步事件循环 * [Boost.Asio](https://think-async.com/Asio/) : 用于网络和底层I/O编程的跨平台的C++库。 * [libev](http://libev.schmorp.de/) : 功能齐全,高性能的时间循环,轻微地仿效libevent,但是不再像libevent一样有局限性,也修复了它的一些bug。 * [libevent](http://libevent.org/) : 事件通知库 * [libuv](https://github.com/joyent/libuv) : 跨平台异步I/O。 * [libco](https://github.com/Tencent/libco) : 协程,微信支持8亿用户同时在线的底层IO库。功能强大 * [libgo](https://github.com/yyzybb537/libgo) : golang风格的并发框架,C++11实现协程库
### 网络库 * [ACE](https://github.com/cflowe/ACE) : C++面向对象网络变成工具包 * [Casablanca](https://archive.codeplex.com/?p=casablanca) : C++ REST SDK * [cpp-netlib](https://cpp-netlib.org/) : 高级网络编程的开源库集合 * [libCurl](https://curl.haxx.se/libcurl/) : 多协议文件传输库 * [Mongoose](https://github.com/cesanta/mongoose) : 非常轻量级的网络服务器 * [Muduo](https://github.com/chenshuo/muduo) : 用于Linux多线程服务器的C++非阻塞网络库 * [net_skeleton](https://github.com/cesanta/fossa) : C/C++的TCP 客户端/服务器库 * [POCO](https://github.com/pocoproject/poco) : 用于构建网络和基于互联网应用程序的C++类库,可以运行在桌面,服务器,移动和嵌入式系统。 * [RakNet](https://github.com/facebookarchive/RakNet) : 为游戏开发人员提供的跨平台的开源C++网络引擎。 * [Tufao](https://github.com/vinipsmaker/tufao) : 用于Qt之上的C++构建的异步Web框架。 * [WebSocket++](https://github.com/zaphoyd/websocketpp) : 基于C++/Boost Aiso的websocket 客户端/服务器库 * [ZeroMQ](http://zeromq.org/) : 高速,模块化的异步通信库
### TCP/IP协议栈 * [f-stack](https://github.com/f-stack/f-stack) : 腾讯开源的协议栈,基于DPDK的高性能用户态协议栈。 * [NtyTcp](https://github.com/wangbojing/NtyTcp) : 单线程的协议栈的,基于netmap,DPDK,rawSocket的实现。 * [LWIP](http://savannah.nongnu.org/projects/lwip/) : 针对 RAM 平台的精简版的 TCP/IP 协议栈实现。 * [mTCP](https://github.com/mtcp-stack/mtcp) : 针对多核系统的高可扩展性的用户空间 TCP/IP 协议栈。 * [4.4BSD](https://www.freebsd.org/zh_CN/copyright/license.html) : * nix的协议栈是源于4.4BSD的。
### WEB应用框架 * [Nginx](http://nginx.org/) : 一个高性能的HTTP和反向代理web服务器,同时也提供了IMAP/POP3/SMTP服务。 * [Lighttpd](http://www.lighttpd.net/) : 一款开源 Web 服务器软件,安全快速,符合行业标准,适配性强并且针对高配置环境进行了优化。 * [Libmicrohttpd](http://www.gnu.org/software/libmicrohttpd/) : GNU软件下的简单c库的Web服务器。API简单,快速。 * [shttpd](http://shttpd.sourceforge.net/) : 基于Mongoose的Web服务器框架。 * [CivetWeb](https://github.com/bel2125/civetweb) : 提供易于使用,强大的,C/C++嵌入式Web服务器,带有可选的CGI,SSL和Lua支持。 * [CppCMS](http://cppcms.com/wikipp/en/page/main) : 免费高性能的Web开发框架(不是 CMS). * [Crow](https://github.com/ipkn/crow) : 一个C++微型web框架(灵感来自于Python Flask) * [Kore](https://kore.io/) : 使用C语言开发的用于web应用程序的超快速和灵活的web服务器/框架。 * [libOnion](https://www.coralbits.com/libonion/) : 轻量级的库,帮助你使用C编程语言创建web服务器。 * [QDjango](https://github.com/jlaine/qdjango/) : 使用C++编写的,基于Qt库的web框架,试图效仿Django API,因此得此名。 * [Wt](https://www.webtoolkit.eu/wt) : 开发Web应用的C++库。
### 标准库,算法与函数 * [C++ Standard Library](http://en.wikipedia.org/wiki/C%2B%2B_Standard_Library) : 是一系列类和函数的集合,使用核心语言编写,也是C++ISO自身标准的一部分。 * [Standard Template Library](https://en.wikipedia.org/wiki/Standard_Template_Library) : 标准模板库, STL * [ISO C++ Standards Committee](https://github.com/cplusplus) : C++标准委员会
### 音频库 * [FMOD](https://www.fmod.com/) : 易于使用的跨平台的音频引擎和音频内容的游戏创作工具。 * [Maximilian](https://github.com/micknoise/Maximilian) : C++音频和音乐数字信号处理库 * [OpenAL](http://www.openal.org/) : 开源音频库—跨平台的音频API * [Opus](http://opus-codec.org/) : 一个完全开放的,免版税的,高度通用的音频编解码器 * [Speex](https://www.speex.org/) : 免费编解码器,为Opus所废弃 * [Tonic](https://github.com/TonicAudio/Tonic) : C++易用和高效的音频合成 * [Vorbis](http://xiph.org/vorbis/) : Ogg Vorbis是一种完全开放的,非专有的,免版税的通用压缩音频格式。
### 生态学 * [lisequence](http://molpopgen.github.io/libsequence/) : 用于表示和分析群体遗传学数据的C++库。 * [SeqAn](http://www.seqan.de/) : 专注于生物数据序列分析的算法和数据结构。 * [Vcflib](https://github.com/vcflib/vcflib) : 用于解析和处理VCF文件的C++库 * [Wham](https://github.com/zeeev/wham) : 直接把联想测试应用到BAM文件的基因结构变异。
### 压缩 * [bzip2](http://www.bzip.org/) : 一个完全免费,免费专利和高质量的数据压缩 * [doboz](https://bitbucket.org/attila_afra/doboz/src) : 能够快速解压缩的压缩库 * [PhysicsFS](https://icculus.org/physfs/) : 对各种归档提供抽象访问的库,主要用于视频游戏,设计灵感部分来自于Quake3的文件子系统。 * [KArchive](https://projects.kde.org/projects/frameworks/karchive) : 用于创建,读写和操作文件档案(例如zip和 tar)的库,它通过QIODevice的一系列子类,使用gzip格式,提供了透明的压缩和解压缩的数据。 * [LZ4](https://code.google.com/p/lz4/) : 非常快速的压缩算法 * [LZHAM](https://code.google.com/p/lzham/) : 无损压缩数据库,压缩比率跟LZMA接近,但是解压缩速度却要快得多。 * [LZMA](http://www.7-zip.org/sdk.html) : 7z格式默认和通用的压缩方法。 * [LZMAT](http://www.matcode.com/lzmat.htm) : 及其快速的实时无损数据压缩库 * [Minizip](https://code.google.com/p/miniz/) : Zlib最新bug修复,支持PKWARE磁盘跨越,AES加密和IO缓冲。 * [Snappy](https://code.google.com/p/snappy/) : 快速压缩和解压缩 * [ZLib](http://zlib.net/) : 非常紧凑的数据流压缩库 * [ZZIPlib](http://zziplib.sourceforge.net/) : 提供ZIP归档的读权限。
### 并发性 * [Boost.Compute](https://github.com/boostorg/compute) : 用于OpenCL的C++GPU计算库 * [Bolt](https://github.com/HSA-Libraries/Bolt) : 针对GPU进行优化的C++模板库 * [C++React](https://github.com/schlangster/cpp.react) : 用于C++11的反应性编程库 * [Intel TBB](https://www.threadingbuildingblocks.org/) : Intel线程构件块 * [Libclsph](https://github.com/libclsph/libclsph) : 基于OpenCL的GPU加速SPH流体仿真库 * [OpenCL](https://www.khronos.org/opencl/) : 并行编程的异构系统的开放标准 * [OpenMP](https://www.openmp.org/) : OpenMP API * [Thrust](http://thrust.github.io/) : 类似于C++标准模板库的并行算法库 * [HPX](https://github.com/STEllAR-GROUP/hpx/) : 用于任何规模的并行和分布式应用程序的通用C++运行时系统 * [VexCL](https://github.com/ddemidov/vexcl) : 用于OpenCL/CUDA 的C++向量表达式模板库。
### 密码学 * [Bcrypt](http://bcrypt.sourceforge.net/) : 一个跨平台的文件加密工具,加密文件可以移植到所有可支持的操作系统和处理器中。 * [BeeCrypt](https://github.com/klchang/beecrypt) : 快速的加密图形库,功能强大,接口方便。 * [Botan](https://botan.randombit.net/) : C++加密库 * [Crypto++](https://www.cryptopp.com/) : 一个有关加密方案的免费的C++库 * [GnuPG](https://www.gnupg.org/) : OpenPGP标准的完整实现 * [GnuTLS](https://www.gnutls.org/) : 实现了SSL,TLS和DTLS协议的安全通信库 * [Libgcrypt](https://gnupg.org/related_software/libgcrypt/) : 基于GnuPG的加密图形库。 * [Libmcrypt](https://github.com/winlibs/libmcrypt) : 线程安全,提供统一的API。 * [LibreSSL](http://www.libressl.org/) : 免费的SSL/TLS协议,属于2014 OpenSSL的一个分支 * [LibTomCrypt](https://github.com/libtom/libtomcrypt) : 一个非常全面的,模块化的,可移植的加密工具 * [libsodium](https://github.com/jedisct1/libsodium) : 基于NaCI的加密库,固执己见,容易使用 * [Nettle](http://www.lysator.liu.se/~nisse/nettle/) : 底层的加密库 * [OpenSSL](https://www.openssl.org/) : 一个强大的,商用的,功能齐全的,开放源代码的加密库。
### 数据库 * [hiberlite](https://github.com/paulftw/hiberlite) : 用于Sqlite3的C++对象关系映射 * [LevelDB](https://github.com/google/leveldb) : 快速键值存储库 * [LMDB](https://symas.com/lmdb/technical/) : 符合数据库四大基本元素的嵌入键值存储 * [MySQL++](https://tangentsoft.com/mysqlpp/home) : 封装了MySql的C API的C++ 包装器 * [RocksDB](https://github.com/facebook/rocksdb) : 来自Facebook的嵌入键值的快速存储 * [SQLite](https://www.sqlite.org/index.html) : 一个完全嵌入式的,功能齐全的关系数据库,只有几百KB,可以正确包含到你的项目中。 * [MongoDB](https://www.mongodb.com/) : 一个基于分布式文件存储的数据库
### 调试 * [Boost.Test](https://www.boost.org/doc/libs/master/libs/test/doc/html/index.html) : Boost测试库 * [Catch](https://github.com/catchorg/Catch2) : 一个很时尚的,C++原生的框架,只包含头文件,用于单元测试,测试驱动开发和行为驱动开发。 * [CppUnit](https://www.freedesktop.org/wiki/Software/cppunit/) : 由JUnit移植过来的C++测试框架 * [GoogleTest](http://code.google.com/p/googletest/) : 谷歌C++测试框架 * [ig-debugheap](https://github.com/deplinenoise/ig-debugheap) : 用于跟踪内存错误的多平台调试堆 * [MemTrack](http://www.almostinfinite.com/memtrack.html) : 用于C++跟踪内存分配 * [MicroProfile](https://bitbucket.org/jonasmeyer/microprofile/src/default/) : 跨平台的网络试图分析器 * [UnitTest++](http://unittest-cpp.sourceforge.net/) : 轻量级的C++单元测试框架
### 容器 * [C++ B-Tree](https://code.google.com/p/cpp-btree/) : 基于B树数据结构,实现命令内存容器的模板库 * [Hashmaps](https://github.com/goossaert/hashmap) : C++中开放寻址哈希表算法的实现
### 游戏引擎 * [Cocos2d-x](https://cocos2d-x.org/) : 一个跨平台框架,用于构建2D游戏,互动图书,演示和其他图形应用程序。 * [Grit](http://gritengine.com/) : 社区项目,用于构建一个免费的游戏引擎,实现开放的世界3D游戏。 * [lrrlicht](http://irrlicht.sourceforge.net/) : C++语言编写的开源高性能的实时#D引擎 * [PolyCode](http://polycode.org/) : C++实现的用于创建游戏的开源框架(与Lua绑定)。
### 图形库 * [bgfx](https://github.com/bkaradzic/bgfx) : 跨平台的渲染库 * [Cairo](http://www.cairographics.org/) : 支持多种输出设备的2D图形库 * [Horde3D](https://github.com/horde3d/Horde3D) : 一个小型的3D渲染和动画引擎 * [magnum](https://github.com/mosra/magnum) : C++11和OpenGL 2D/3D 图形引擎 * [Ogre 3D](https://www.ogre3d.org/) : 用C++编写的一个面向场景,实时,灵活的3D渲染引擎(并非游戏引擎) * [OpenSceneGraph](http://www.openscenegraph.org/) : 具有高性能的开源3D图形工具包 * [Panda3D](https://www.panda3d.org/) : 用于3D渲染和游戏开发的框架,用Python和C++编写。 * [Skia](https://github.com/google/skia) : 用于绘制文字,图形和图像的完整的2D图形库 * [urho3d](https://github.com/urho3d/Urho3D) : 跨平台的渲染和游戏引擎。
### 图像处理 * [Boost.GIL](https://www.boost.org/doc/libs/1_56_0/libs/gil/doc/index.html) : 通用图像库 * [CImg](https://sourceforge.net/projects/cimg/) : 用于图像处理的小型开源C++工具包 * [FreeImage](http://freeimage.sourceforge.net/) : 开源库,支持现在多媒体应用所需的通用图片格式和其他格式。 * [GDCM](http://gdcm.sourceforge.net/wiki/index.php/Main_Page) : Grassroots DICOM 库 * [ITK](https://itk.org/) : 跨平台的开源图像分析系统 * [Magick++](http://www.imagemagick.org/script/api.php) : ImageMagick程序的C++接口 * [OpenCV](https://opencv.org/) : 开源计算机视觉类库 * [tesseract-ocr](https://code.google.com/p/tesseract-ocr/) : OCR引擎 * [VIGRA](https://github.com/ukoethe/vigra) : 用于图像分析通用C++计算机视觉库 * [VTK](https://vtk.org/) : 用于3D计算机图形学,图像处理和可视化的开源免费软件系统。
### 国际化 * [gettext](http://www.gnu.org/software/gettext/) : GNU gettext * [IBM ICU](http://site.icu-project.org/) : 提供Unicode 和全球化支持的C、C++ 和Java库 * [libiconv](http://www.gnu.org/software/libiconv/) : 用于不同字符编码之间的编码转换库
### Json库 * [frozen](https://github.com/cesanta/frozen) : C/C++的Jason解析生成器 * [Jansson](https://github.com/akheron/jansson) : 进行编解码和处理Jason数据的C语言库 * [jbson](https://github.com/chrismanning/jbson) : C++14中构建和迭代BSON data,和Json 文档的库 * [JeayeSON](https://github.com/jeaye/jeayeson) : 非常健全的C++ JSON库,只包含头文件 * [JSON++](https://github.com/hjiang/jsonxx) : C++ JSON 解析器 * [json-parser](https://github.com/udp/json-parser) : 用可移植的ANSI C编写的JSON解析器,占用内存非常少 * [json11](https://github.com/dropbox/json11) : 一个迷你的C++11 JSON库 * [jute](https://github.com/amir-s/jute) : 非常简单的C++ JSON解析器 * [ibjson](https://github.com/vincenthz/libjson) : C语言中的JSON解析和打印库,很容易和任何模型集成 * [libjson](https://sourceforge.net/projects/libjson/) : 轻量级的JSON库 * [PicoJSON](https://github.com/kazuho/picojson) : C++中JSON解析序列化,只包含头文件 * [Qt-Json](https://github.com/qt-json/qt-json) : 用于JSON数据和 QVariant层次间的相互解析的简单类 * [QJson](https://github.com/flavio/qjson) : 将JSON数据映射到QVariant对象的基于Qt的库 * [RepidJSON](https://github.com/Tencent/rapidjson) : 用于C++的快速JSON 解析生成器,包含SAX和DOM两种风格的API
### 日志 * [Boost.Log](http://www.boost.org/doc/libs/1_56_0/libs/log/doc/html/index.html) : 设计非常模块化,并且具有扩展性 * [easyloggingpp](https://github.com/zuhd-org/easyloggingpp) : C++日志库,只包含单一的头文件。 * [Log4cpp](http://log4cpp.sourceforge.net/) : 一系列C++类库,灵活添加日志到文件,系统日志,IDSA和其他地方。 * [templog](http://www.templog.org/) : 轻量级C++库,可以添加日志到你的C++应用程序中
### 机器学习,人工智能 * [btsk](https://github.com/aigamedev/btsk) : 游戏行为树启动器工具 * [Evolving Objects](http://eodev.sourceforge.net/) : 基于模板的,ANSI C++演化计算库,能够帮助你非常快速地编写出自己的随机优化算法。 * [Caffe](https://github.com/BVLC/caffe) : 快速的神经网络框架 * [CCV](https://github.com/liuliu/ccv) : 以C语言为核心的现代计算机视觉库 * [mlpack](http://www.mlpack.org/) : 可扩展的C++机器学习库 * [OpenCV](https://github.com/opencv/opencv) : 开源计算机视觉库 * [Recommender](https://github.com/GHamrouni/Recommender) : 使用协同过滤进行产品推荐/建议的C语言库。 * [SHOGUN](https://github.com/shogun-toolbox/shogun) : Shogun 机器学习工具 * [sofia-ml](https://code.google.com/p/sofia-ml/) : 用于机器学习的快速增量算法套件
### 数学库 * [Armadillo](http://arma.sourceforge.net/) : 高质量的C++线性代数库,速度和易用性做到了很好的平衡。语法和MatlAB很相似 * [blaze](https://code.google.com/p/blaze-lib/) : 高性能的C++数学库,用于密集和稀疏算法。 * [ceres-solver](http://ceres-solver.org/) : 来自谷歌的C++库,用于建模和解决大型复杂非线性最小平方问题。 * [CGal](http://www.cgal.org/) : 高效,可靠的集合算法集合 * [CML](https://github.com/demianmnave/CML/wiki/The-Configurable-Math-Library) : 用于游戏和图形的免费C++数学库 * [Eigen](http://eigen.tuxfamily.org/index.php?title=Main_Page) : 高级C++模板头文件库,包括线性代数,矩阵,向量操作,数值解决和其他相关的算法。 * [GMTL](http://ggt.sourceforge.net/) : 数学图形模板库是一组广泛实现基本图形的工具。 * [GMP](https://gmplib.org/) : 用于个高精度计算的C/C++库,处理有符号整数,有理数和浮点数。
### 多媒体库 * [GStreamer](https://gstreamer.freedesktop.org/) : 构建媒体处理组件图形的库 * [LIVE555 Streaming Media](http://www.live555.com/liveMedia/) : 使用开放标准协议(RTP/RTCP, RTSP, SIP) 的多媒体流库 * [libVLC](https://wiki.videolan.org/LibVLC) : libVLC (VLC SDK)媒体框架 * [QtAV](https://github.com/wang-bin/QtAV) : 基于Qt和FFmpeg的多媒体播放框架,能够帮助你轻而易举地编写出一个播放器 * [SDL](http://www.libsdl.org/) : 简单直控媒体层 * [SFML](http://www.sfml-dev.org/) : 快速,简单的多媒体库
### 物理学 * [Box2D](https://code.google.com/p/box2d/) : 2D的游戏物理引擎。 * [Bullet](https://github.com/bulletphysics/bullet3) : 3D的游戏物理引擎。 * [Chipmunk](https://github.com/slembcke/Chipmunk2D) : 快速,轻量级的2D游戏物理库 * [LiquidFun](https://github.com/google/liquidfun) : 2D的游戏物理引擎 * [ODE](http://www.ode.org/) : 开放动力学引擎-开源,高性能库,模拟刚体动力学。 * [ofxBox2D](https://github.com/vanderlin/ofxBox2d) : Box2D开源框架包装器。 * [Simbody](https://github.com/simbody/simbody) : 高性能C++多体动力学/物理库,模拟关节生物力学和机械系统,像车辆,机器人和人体骨骼。
### 机器人学 * [MOOS-Ivp](http://moos-ivp.org/) : 一组开源C++模块,提供机器人平台的自主权,尤其是自主的海洋车辆。 * [MRPT](https://www.mrpt.org/) : 移动机器人编程工具包 * [PCL](https://github.com/PointCloudLibrary/pcl) : 点云库是一个独立的,大规模的开放项目,用于2D/3D图像和点云处理。 * [Robotics Library](http://www.roboticslibrary.org/) : 一个独立的C++库,包括机器人动力学,运动规划和控制。 * [RobWork](http://www.robwork.dk/apidoc/nightly/rw/) : 一组C++库的集合,用于机器人系统的仿真和控制。 * [ROS](http://wiki.ros.org/) : 机器人操作系统,提供了一些库和工具帮助软件开发人员创建机器人应用程序。

### 脚本 * [ChaiScript](https://github.com/ChaiScript/ChaiScript/) : 用于C++的易于使用的嵌入式脚本语言。 * [Lua](http://www.lua.org/) : 用于配置文件和基本应用程序脚本的小型快速脚本引擎。 * [luacxx](https://github.com/dafrito/luacxx) : 用于创建Lua绑定的C++ 11 API * [SWIG](http://www.swig.org/) : 一个可以让你的C++代码链接到JavaScript,Perl,PHP,Python,Tcl和Ruby的包装器/接口生成器 * [V7](https://github.com/cesanta/v7) : 嵌入式的JavaScript 引擎。 * [V8](http://code.google.com/p/v8/) : 谷歌的快速JavaScript引擎,可以被嵌入到任何C++应用程序中。
### 序列化 * [Cap'n Proto](https://capnproto.org/) : 快速数据交换格式和RPC系统。 * [cereal](https://github.com/USCiLab/cereal) : C++11 序列化库 * [FlatBuffers](https://github.com/google/flatbuffers) : 内存高效的序列化库 * [MessagePack](https://github.com/msgpack/msgpack-c) : C/C++的高效二进制序列化库,例如 JSON * [ProtoBuf](http://code.google.com/p/protobuf/) : 协议缓冲,谷歌的数据交换格式。 * [SimpleBinaryEncoding](https://github.com/real-logic/simple-binary-encoding) : 用于低延迟应用程序的对二进制格式的应用程序信息的编码和解码。 * [Thrift](https://thrift.apache.org/) : 高效的跨语言IPC/RPC,用于C++,Java,Python,PHP,C#和其它多种语言中,最初由Facebook开发。
### 视频库 * [libvpx](http://www.webmproject.org/code/) : VP8/VP9编码解码SDK * [FFMpeg](https://www.ffmpeg.org/) : 一个完整的,跨平台的解决方案,用于记录,转换视频和音频流。 * [libde265](https://github.com/strukturag/libde265) : 开放的h.265视频编解码器的实现。 * [OpenH264](https://github.com/cisco/openh264) : 开源H.364 编解码器。 * [Theora](https://www.theora.org/) : 免费开源的视频压缩格式。
### XML库 * [LibXml++](http://libxmlplusplus.sourceforge.net/) : C++的xml解析器 * [PugiXML](https://pugixml.org/) : 用于C++的,支持XPath的轻量级,简单快速的XML解析器。 * [RapidXML](http://rapidxml.sourceforge.net/) : 试图创建最快速的XML解析器,同时保持易用性,可移植性和合理的W3C兼容性。 * [TinyXML](https://sourceforge.net/projects/tinyxml/) : 简单小型的C++XML解析器,可以很容易地集成到其它项目中。 * [TinyXML2](https://github.com/leethomason/tinyxml2) : 简单快速的C++CML解析器,可以很容易集成到其它项目中。 * [TinyXML++](https://code.google.com/p/ticpp/) : TinyXML的一个全新的接口,使用了C++的许多许多优势,模板,异常和更好的异常处理。 * [Xerces-C++](http://xerces.apache.org/xerces-c/) : 用可移植的C++的子集编写的XML验证解析器。 ---
# 🖥 部分代码案例 ###

关键字

####
新增关键字
* [thread_local](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#thread_local) * [static_assert](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#static_assert) * [nullptr](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#nullptr) * [noexcept](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#noexcept) * [decltype](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#decltype) * [constexpr](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#constexpr) * [char16_t](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#char16_t) * [char32_t](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#char16_t) * [alignof](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#alignof) * [alignas](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_new_keywords_README.md#alignof) ####
含义变化或者新增含义关键字(meaning changed or new meaning added)
* [auto](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#auto) * [class](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#clazz) * [default](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#default) * [delete](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#delete) * [export](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#export) * [extern](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#extern) * [inline](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#inline) * [mutable](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#mutable) * [sizeof](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#sizeof) * [struct](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#struct) * [using](https://github.com/0voice/cpp_new_features/blob/main/cpp_11/001_meaning_keywords_README.md#using) ###

类型支持(基本类型、RTTI、类型特性)

####
Defined in header <type_traits>
* is_void * is_integral * is_floating_point * is_array * is_enum * is_union * is_class * is_function * is_pointer * is_lvalue_reference * is_rvalue_reference * is_member_object_pointer * is_member_function_pointer * is_fundamental * is_arithmetic * is_scalar * is_object * is_compound * is_reference * is_member_pointer * is_const * is_volatile * is_trivial * is_trivially_copyable * is_standard_layout * is_literal_type * is_empty * is_polymorphic * is_abstract * is_signed * is_unsigned * is_constructible * is_trivially_constructible * is_nothrow_constructible * is_default_constructible * is_trivially_default_constructible * is_nothrow_default_constructible * is_copy_constructible * is_trivially_copy_constructible * is_nothrow_copy_constructible * is_move_constructible * is_trivially_move_constructible * is_nothrow_move_constructible * is_assignable * is_trivially_assignable * is_nothrow_assignable * is_copy_assignable * is_trivially_copy_assignable * is_nothrow_copy_assignable * is_move_assignable * is_trivially_move_assignable * is_nothrow_move_assignable * is_destructible * is_trivially_destructible * is_nothrow_destructible * has_virtual_destructor ###

STL容器

* std::array * std::forward_list * std::begin * std::end * std::move * 容器初始化 * emplace ####
无序容器
* std::unordered_map * std::unordered_multimap * std::unordered_set * std::unordered_multiset ####
元组std::tuple
* std::make_tuple * std::get * std::tie ####
hash
* std::hash<std::string> * std::hash<std::u16string> * std::hash<std::u32string> * std::hash<std::wstring> * std::hash<std::error_code> * std::hash<std::bitset> * std::hash<std::type_index> * std::hash<std::vector<bool>> ###

智能指针

* std::shared_ptr * std::weak_ptr * std::unique_ptr * auto_ptr(弃用) ###

正则表达式

* basic_regex * sub_match * match_results ###

函数

####
非静态成员函数
* cv限定函数 * 引用限定 ####
函数对象模板
* std::function * std::bind * std::bad_function_call * mem_fn ###

* 类型别名 * 类成员初始化 * 仿函数(functor) * 委托构造函数 * 继承构造函数 * 移动构造函数 * 移动赋值运算符 ###

模板

* 尖括号“>” * 别名模板 * 外部模板 * 可变参数模板 * 默认模板参数 ###

原子操作

* std::atomic<bool> * std::atomic<char> * std::atomic<signed char> * std::atomic<unsigned char> * std::atomic<short> * std::atomic<unsigned short> * std::atomic<int> * std::atomic<unsigned int> * std::atomic<long> * std::atomic<unsigned long> * std::atomic<long long> * std::atomic<unsigned long long> * std::atomic<char8_t> * std::atomic<char16_t> * std::atomic<char32_t> * std::atomic<wchar_t> * std::atomic<std::int8_t> * std::atomic<std::uint8_t> * std::atomic<std::int16_t> * std::atomic<std::uint16_t> * std::atomic<std::int32_t> * std::atomic<std::uint32_t> * std::atomic<std::int64_t> * std::atomic<std::uint64_t> * std::atomic<std::int_least8_t> * std::atomic<std::uint_least8_t> * std::atomic<std::int_least16_t> * std::atomic<std::uint_least16_t> * std::atomic<std::int_least32_t> * std::atomic<std::uint_least32_t> * std::atomic<std::int_least64_t> * std::atomic<std::uint_least64_t> * std::atomic<std::int_fast8_t> * std::atomic<std::uint_fast8_t> * std::atomic<std::int_fast16_t> * std::atomic<std::uint_fast16_t> * std::atomic<std::int_fast32_t> * std::atomic<std::uint_fast32_t> * std::atomic<std::int_fast64_t> * std::atomic<std::uint_fast64_t> ###

线程

* std::thread * std::mutex * std::lock * std::call_once * std::atomic * std::cond_ition_variable * std::async * volatile * std::future * std::thread_local ###

异常

* std::exception_ptr * std::make_exception_ptr * std::current_exception * std::rethrow_exception * std::nested_exception * std::throw_with_nested * std::rethrow_if_nested ###

错误

* std::error_category * std::generic_category * std::error_condition * std::errc * std::error_code * std::system_error ###

新语法

####
预处理
*

语法:__pragma(字符串字面量)

* _Pragma运算符 ####
C++宏(cplusplus macro)
* _cplusplus宏 ####
基于范围的for语句
* for循环 for(x:range) ####
对齐支持(alignment support)
* alignof * alignas * std::alignment_of * std::aligned_storage * std::max_align_t * std::align ####
显式转换操作符(explicit conversion operators)
* explicit关键字 ####
静态断言(static assert)
*

语法:static_assert(常量表达式,"提示字符串")

* static assert ####
数字限制(numeric limits)
* 数字限制 ####
原始字符串(raw string)
* 原始字符串 ####
追踪返回类型语法(trailing return type syntax)
* 追踪返回类型语法 ####
扩展的friend语法(extended friend syntax)
* 扩展的friend语法 ####
扩展的整型(extended integer types)
* 扩展的整型 ####
非受限联合体(unrestricted union)
* 非受限联合体 ####
内联名字空间(lnline namespace)
* 内联名字空间 ####
用户定义的字面量(user-defined literals)
* 用户定义的字面量 ####
强类型枚举(scoped and strongly typed enums)
* 强类型枚举 ####
随机装置(random device)
* random device ####
std::ref和std::cref
* std::ref和std::cref ####
常量表达式(constexpr)
* constexpr ####
lamda表达式
* lamda表达式 ####
指针空值(nullptr)
* nullptr ####
防止类型收窄(Preventing narrowing)
* 防止类型收窄 ####
初始化列表(initializer lists)
* 初始化列表——Initializer List * initializer_list(作入参) ####
统一的初始化语法和语义(Uniform initialization syntax and semantics)
* 统一的初始化语法和语义 ####
POD(plain old data)
* POD ####
long long整型
* long long ####
移动语义(move semantics)
* move semantics ####
右值引用(rvalue reference)
* rvalue reference ####
c99特性(c99)
* c99特性 ####
一般化的SFINAE规则(generalized SFINAE rules)
* generalized SFINAE rules -----
###

类型支持(基本类型、RTTI、类型特性)

###
Defined in header<type_traits>
* 检查类型是否为 std::nullptr_t * is_final(检查类型是否为 final 类类型) ###
Defined in header<utility>
* exchange(将实参替换为一个新值,并返回其先前值) * integer_sequence(实现编译时整数数列) ###
Defined in header<initializer_list>
* rbegin(返回指向一个容器或数组的逆向迭代器) * crbegin(返回指向一个容器或数组的逆向迭代器) * rend(返回容器或数组的逆向尾迭代器) * crend(返回容器或数组的逆向尾迭代器) ###
Defined in header<iterator>
###
Defined in namespace std
* make_reverse_iterator(创建拥有从实参推出的类型的 std::reverse_iterator) ###
Defined in header <array>
###
Defined in header <deque>
###
Defined in header <forward_list>
###
Defined in header <iterator>
###
Defined in header <list>
###
Defined in header <map>
###
Defined in header <regex>
###
Defined in header <set>
###
Defined in header <span>
###
Defined in header <string>
###
Defined in header <string_view>
###
Defined in header <unordered_map>
###
Defined in header <unordered_set>
###
Defined in header <vector>
###
Defined in namespace std
* begin(返回指向容器或数组起始的迭代器) * cbegin(返回指向容器或数组起始的迭代器) * end(返回指向容器或数组结尾的迭代器) * cend(返回指向容器或数组结尾的迭代器) * rbegin(返回指向一个容器或数组的逆向迭代器) * crbegin(返回指向一个容器或数组的逆向迭代器) * rend(返回容器或数组的逆向尾迭代器) * crend(返回容器或数组的逆向尾迭代器) -----
###

关键字

####
含义变化或者新增含义关键字(meaning changed or new meaning added)
* [register](https://github.com/0voice/cpp_new_features/blob/main/cpp_17/001_keywords_README.md#register) ###

类型支持(基本类型、RTTI、类型特性)

###
Defined in header<type_traits>
* byte(字节类型) * is_aggregate(检查类型是否聚合类型) * is_swappable_with(检查一个类型的对象是否能与同类型或不同类型的对象交换) * is_swappable(检查一个类型的对象是否能与同类型或不同类型的对象交换) * is_nothrow_swappable_with(检查一个类型的对象是否能与同类型或不同类型的对象交换) * is_nothrow_swappable(检查一个类型的对象是否能与同类型或不同类型的对象交换) * is_invocable(检查类型能否以给定的实参类型调用(如同以 std::invoke)) * is_invocable_r(检查类型能否以给定的实参类型调用(如同以 std::invoke)) * is_nothrow_invocable(检查类型能否以给定的实参类型调用(如同以 std::invoke)) * is_nothrow_invocable_r(检查类型能否以给定的实参类型调用(如同以 std::invoke)) * invoke_result(推导以一组实参调用一个可调用对象的结果类型) * void_t(变参别名模板) * conjunction(变参的逻辑与元函数) * disjunction(变参的逻辑或元函数) * ndisjunctionegation(逻辑非元函数) * integral_constant(具有指定值的指定类型的编译期常量) ###
Defined in header<utility>
* as_const(获得到其实参的 const 引用) ###
Defined in header<tuple>
* apply(以一个实参的元组来调用函数) * make_from_tuple(以一个实参元组构造对象) ###
Defined in header<optional>
* optional(可能或可能不保有一个对象的包装器) * make_optional(创建一个 optional 对象) * std::swap(std::optional)(特化 std::swap 算法) * std::hash<std::optional>(特化 std::hash 算法) * nullopt_t(带未初始化状态的 optional 类型的指示器) * bad_optional_access(指示进行了到不含值的 optional 的有检查访问的异常) * nullopt(nullopt_t 类型对象) ###
Defined in header<variant>
* variant(类型安全的可辨识联合体) * visit(以一或多个 variant 所保有的各实参调用所提供的函数对象) * holds_alternative(检查某个 variant 是否当前持有某个给定类型) * std::get(std::variant)(以给定索引或类型(若类型唯一)读取 variant 的值,错误时抛出异常) * get_if(以给定索引或类型(若其唯一),获得指向被指向的 variant 的值的指针,错误时返回空指针) * std::swap(std::variant)(特化 std::swap 算法) * monostate(用作非可默认构造类型的 variant 的首个可选项的占位符类型) * bad_variant_access(非法地访问 variant 的值时抛出的异常) * variant_size(在编译时获得 variant 可选项列表的大小) * variant_size_v(在编译时获得 variant 可选项列表的大小) * variant_alternative(在编译时获得以其下标指定的可选项的类型) * variant_alternative_t(在编译时获得以其下标指定的可选项的类型) * std::hash<std::variant>(特化 std::hash 算法) * variant_npos(非法状态的 variant 的下标) ###
Defined in header<any>
* any(可保有任何可复制构造 (CopyConstructible) 类型的实例的对象) * std::swap(std::any)(特化 std::swap 算法) * any_cast(对被容纳对象的类型安全访问) * make_any(创建 any 对象) * bad_any_cast(当类型不匹配时按值返回形式的 any_cast 所抛出的异常) ###
Defined in header<charconv>
* to_chars(转换整数或浮点值到字符序列象) * from_chars(转换字符序列到整数或浮点值) * chars_format(指定 std::to_chars 和 std::from_chars 所用的格式) ###
Defined in header<initializer_list>
* empty(检查容器是否为空) * data(获得指向底层数组的指针) ###

容器库

###
Defined in header<map>
* insert_or_assign(插入元素,或若键已存在则赋值给当前元素) * try_emplace(若键不存在则原位插入,若键存在则不做任何事) * extract(从另一容器释出结点) * merge(从另一容器接合结点) ###
Defined in header<unordered_map>
* insert_or_assign(插入元素,或若键已存在则赋值给当前元素) * try_emplace(若键不存在则原位插入,若键存在则不做任何事) * extract(从另一容器释出结点) * merge(从另一容器接合结点) ###
Defined in header <array>
###
Defined in header <deque>
###
Defined in header <forward_list>
###
Defined in header <iterator>
###
Defined in header <list>
###
Defined in header <map>
###
Defined in header <regex>
###
Defined in header <set>
###
Defined in header <span>
###
Defined in header <string>
###
Defined in header <string_view>
###
Defined in header <unordered_map>
###
Defined in header <unordered_set>
###
Defined in header <vector>
###
Defined in namespace std
* size(返回容器或数组的大小) * empty(检查容器是否为空) * data(获得指向底层数组的指针) ----
###

关键字

####
新增关键字
* [char8_t](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#char8_t) * [concept](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#concept) * [consteval](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#consteval) * [co_await](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#co_await) * [co_return](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#co_return) * [co_yield](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#co_yield) * [requires](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#requires) ####
含义变化或者新增含义关键字(meaning changed or new meaning added)
* [export](https://github.com/0voice/cpp_new_features/blob/main/cpp_20/001_keywords_README.md#export) ###

类型支持(基本类型、RTTI、类型特性)

###
Defined in header<type_traits>
* is_bounded_array(检查类型是否为有已知边界的数组类型) * is_unbounded_array(检查类型是否为有未知边界的数组类型) * is_layout_compatible(检查二个类型是否布局兼容) * is_pointer_interconvertible_base_of(检查一个类型是否为另一类型的指针可互转换(起始)基类) * is_pointer_interconvertible_with_class(检查一个类型的对象是否与该类型的指定子对象指针可互转换) * is_corresponding_member(检查二个指定成员是否在二个指定类型中的公共起始序列中彼此对应) * is_nothrow_convertible(检查是否能转换一个类型为另一类型) * remove_cvref(将 std::remove_cv 与 std::remove_reference 结合) * type_identity(返回不更改的类型实参) * is_constant_evaluated(检测调用是否在常量求值的语境内发生) ###

协程支持

###
Defined in header<coroutine>
* coroutine_traits(用于发现协程承诺类型的特征类型) * coroutine_handle(用于指代暂停或执行的协程) * noop_coroutine(创建在等待或销毁时无操作的协程柄) * noop_coroutine_promise(用于无可观察作用的协程) * noop_coroutine_handle(std::coroutine_handle<std::noop_coroutine_promise> ,有意用于指代无操作协程) * suspend_never(指示 await 表达式应该决不暂停) * suspend_always(指示 await 表达式应该始终暂停) ###

三路比较

###
Defined in header<compare>
* std::coroutine_traits * std::coroutine_handle * three_way_comparable(指定运算符 <=> 在给定类型上产生一致的结果) * three_way_comparable_with(指定运算符 <=> 在给定类型上产生一致的结果) * partial_ordering(三路比较的结果类型,支持所有 6 种运算符,不可替换,并允许不可比较的值) * weak_ordering(三路比较的结果类型,支持所有 6 种运算符且不可替换) * strong_ordering(三路比较的结果类型,支持所有 6 种运算符且可替换) * is_eq(具名比较函数) * is_neq(具名比较函数) * is_lt(具名比较函数) * is_lteq(具名比较函数) * is_gt(具名比较函数) * is_gteq(具名比较函数) * compare_three_way(实现 x <=> y 的函数对象) * compare_three_way_result(获得三路比较运算符 <=> 在给定类型上的结果) * common_comparison_category(给定的全部类型都能转换到的最强比较类别) * strong_order(进行三路比较并产生 std::strong_ordering 类型结果) * weak_order(进行三路比较并产生 std::weak_ordering 类型结果) * partial_order(进行三路比较并产生 std::partial_ordering 类型结果) * compare_strong_order_fallback(进行三路比较并产生 std::strong_ordering 类型的结果,即使 operator<=> 不可用) * compare_weak_order_fallback(进行三路比较并产生 std::weak_ordering 类型的结果,即使 operator<=> 不可用) * compare_partial_order_fallback(进行三路比较并产生 std::partial_ordering 类型的结果,即使 operator<=> 不可用 ###
Defined in header<concepts>
* ranges::swap(交换两个对象的值) ###
Defined in header<utility>
* cmp_equal(比较二个整数值,而无转换所致的值更改) * cmp_not_equal(比较二个整数值,而无转换所致的值更改) * cmp_less(比较二个整数值,而无转换所致的值更改) * cmp_less_equal(比较二个整数值,而无转换所致的值更改) * cmp_greater_equal(比较二个整数值,而无转换所致的值更改) * in_range(检查整数值是否在给定整数类型的范围内) ###
Defined in header<memory>
* uninitialized_move(移动一个范围的对象到未初始化的内存区域) * uninitialized_move_n(移动一定数量对象到未初始化内存区域) * uninitialized_default_construct(在范围所定义的未初始化的内存区域以默认初始化构造对象) * uninitialized_default_construct_n(在起始和计数所定义的未初始化内存区域用默认初始化构造对象) * uninitialized_value_construct(在范围所定义的未初始化内存中用值初始化构造对象) * uninitialized_value_construct_n(在起始和计数所定义的未初始化内存区域以值初始化构造对象) * destroy_at(销毁在给定地址的对象) * destroy(销毁一个范围中的对象) * destroy_n(销毁范围中一定数量的对象) ###

Concepts library(概念库)

###
Defined in header<concepts>
* same_as(指定一个类型与另一类型相同) * derived_from(指定一个类型派生自另一类型) * convertible_to(指定一个类型能隐式转换成另一类型) * common_reference_with(指定两个类型共有一个公共引用类型) * common_with(指定两个类型共有一个公共类型) * integral(指定类型为整型类型) * signed_integral(指定类型为有符号的整型类型) * unsigned_integral(指定类型为无符号的整型类型) * floating_point(指定类型为浮点类型) * assignable_from(指定一个类型能从另一类型赋值) * swappable(指定一个类型能进行交换,或两个类型能彼此交换) * swappable_with(指定一个类型能进行交换,或两个类型能彼此交换) * destructible(指定能销毁该类型的对象) * constructible_from(指定该类型的变量能从一组实参类型进行构造,或绑定到一组实参类型) * default_initializable(指定能默认构造一个类型的对象) * move_constructible(指定能移动构造一个类型的对象) * copy_constructible(指定能复制构造和移动构造一个类型的对象) * boolean-testable(指定能用于布尔语境的类型) * equality_comparable(指定运算符 == 为等价关系) * equality_comparable_with(指定运算符 == 为等价关系) * totally_ordered(指定比较运算符在该类型上产生全序) * totally_ordered_with(指定比较运算符在该类型上产生全序) * movable(指定能移动及交换一个类型的对象) * copyable(指定能复制、移动及交换一个类型的对象) * semiregular(指定能赋值、移动、交换及默认构造一个类型的对象) * regular(指定类型为正则,即它既为 semiregular 亦为 equality_comparable) * invocable(指定能以给定的一组实参类型调用的可调用类型) * regular_invocable(指定能以给定的一组实参类型调用的可调用类型) * predicate(指定可调用类型为布尔谓词) * relation(指定可调用类型为二元关系) * equivalence_relation(指定 relation 施加等价关系) * strict_weak_order(指定一个 relation 所强加的是严格弱序) ###

动态内存管理

###
Defined in header<memory>
* uses_allocator_construction_args(准备匹配给定类型所要求的使用分配器构造的口味的参数列表) * make_obj_using_allocator(以使用分配器构造的手段创建给类型的对象) * uninitialized_construct_using_allocator(以使用分配器构造的手段在指定的内存位置创建给定类型的对象) * construct_at(在给定地址创建对象) * no-throw-input-iterator(指定迭代器、哨位和范围上的某些操作不抛出) * no-throw-forward-iterator(指定迭代器、哨位和范围上的某些操作不抛出) * no-throw-sentinel-for(指定迭代器、哨位和范围上的某些操作不抛出) * no-throw-input-range(指定迭代器、哨位和范围上的某些操作不抛出) * no-throw-forward-range(指定迭代器、哨位和范围上的某些操作不抛出) * ranges::uninitialized_copy(复制元素范围到未初始化的内存区域) * ranges::uninitialized_copy_n(复制一定量元素到未初始化的内存区域) * ranges::uninitialized_fill(复制一个对象到范围所定义的未初始化的内存区域) * ranges::uninitialized_fill_n(复制一个对象到起始与计数所定义的未初始化的内存区域) * ranges::uninitialized_move(移动对象范围到未初始化的内存区域) * ranges::uninitialized_move_n(移动一定量对象到未初始化的内存区域) * ranges::uninitialized_default_construct(在范围所定义的未初始化的内存区域以默认初始化构造对象) * ranges::uninitialized_default_construct_n(在起始与计数所定义的未初始化的内存区域以默认初始化构造对象) * ranges::uninitialized_value_construct(在范围所定义的未初始化的内存区域以值初始化构造对象) * ranges::uninitialized_value_construct_n(在起始与计数所定义的未初始化的内存区域以值初始化构造对象) * ranges::destroy_at(销毁位于给定地址的元素) * ranges::destroy(销毁范围中的元素) * ranges::destroy_n(销毁范围中一定量的元素) * ranges::construct_at(在给定地址创建对象) * to_address(从指针式类型获得裸指针) * assume_aligned(告知编译器指针已对齐) ###

日期和时间工具

###
Defined in header<chrono>
* is_clock(确定类型是否为时钟 (Clock)) * is_clock_v(确定类型是否为时钟 (Clock)) * utc_clock(协调世界时 (UTC) 的时钟 (Clock)) * tai_clock(国际原子时 (TAI) 的时钟 (Clock)) * gps_clock(GPS 时间的时钟 (Clock)) * file_clock(用于文件时间的时钟 (Clock)) * local_t(表示本地时间的伪时钟) * clock_time_conversion(定义如何转换一个时钟的时间点为另一个的特性类) * clock_cast(转换一个时钟的时间点为另一个) * time_of_day(表示一日中的时间) * is_am(在 12 时和 24 时格式当天时刻之间翻译) * is_pm(在 12 时和 24 时格式当天时刻之间翻译) * make12(在 12 时和 24 时格式当天时刻之间翻译) * make24(在 12 时和 24 时格式当天时刻之间翻译) * last_spec(指示一个月中最后日期或星期的标签类) * day(表示月之日期) * month(表示年之月份) * year(表示格里高利历中的年) * weekday(表示格里高利历中星期之日) * weekday_indexed(表示月份的第 n 个 weekday) * weekday_last(表示月份的最后一个 weekday) * month_day(表示特定 month 的特定 day) * month_day_last(表示特定 month 的最后一日) * month_weekday(表示特定 month 的第 n 个 weekday) * month_weekday_last(表示特定 month 的最后一个 weekday) * year_month(表示特定 year 的特定 month) * year_month_day(表示特定的 year 、 month 和 day) * year_month_day_last(表示特定 year 和 month 的最后一日) * year_month_weekday(表示特定 year 和 month 的第 n 个 weekday) * year_month_weekday_last(表示特定 year 和 month 的最后一个 weekday) * operator/(创建格里高利历日期的约定语法) * tzdb(描述 IANA 时区数据库的副本) * tzdb_list(表示 tzdb 的链表) * get_tzdb(访问和控制全球时区数据库信息) * get_tzdb_list(访问和控制全球时区数据库信息) * reload_tzdb(访问和控制全球时区数据库信息) * remote_version(访问和控制全球时区数据库信息) * locate_zone(定位基于其名称的 time_zone) * current_zone(返回当前的 time_zone) * time_zone(表示时区) * sys_info(表示在特定时间点的关于时区的信息) * local_info(表示关于从本地时间转换到 UNIX 时间的信息) * choose(选择应如何解析歧义的本地时间) * zoned_traits(zoned_time 所用的时区指针的特性类) * zoned_time(表示时区和时间点) * leap_second(含有关于插入闰秒的信息) * time_zone_link(表示时区的替用名) * nonexistent_local_time(抛出以报告本地时间不存在的异常) * ambiguous_local_time(抛出以报告本地时间有歧义的异常) * parse(从流分析 chrono 对象) ###

字符串

###
Defined in header<string>
* starts_with(检查 string 是否始于给定前缀) * ends_with(检查 string 是否终于给定后缀) ###
Defined in header<string_view>
* starts_with(检查 string_view 是否始于给定前缀) * ends_with(检查 string_view 是否终于给定后缀) ###
Defined in header<cuchar>
* mbrtoc8(转换窄多字节字符为 UTF-8 编码) * c8rtomb(转换 UTF-8 字符串为窄多字节编码) ###

容器库

###
Defined in header<array>
* to_array(从内建数组创建 std::array 对象) ###
Defined in header<vector>
* erase(std::vector)(擦除所有满足特定判别标准的元素) * erase_if(std::vector)(擦除所有满足特定判别标准的元素) ###
Defined in header<map>
* contains(检查容器是否含有带特定键的元素) * erase_if(std::map)(擦除所有满足特定判别标准的元素) ###
Defined in header<unordered_map>
* contains(检查容器是否含有带特定键的元素) * erase_if(std::unordered_map)(擦除所有满足特定判别标准的元素) ###
Defined in header<span>
* begin(返回指向起始的迭代器) * end(返回指向末尾的迭代器) * rbegin(返回指向起始的逆向迭代器) * rend(返回指向末尾的逆向迭代器) * front(访问第一个元素) * back(访问最后一个元素) * dynamic_extent(size_t 类型常量,指明 span 拥有动态长度) ###
Defined in namespace std
* indirectly_readable(指定类型通过应用运算符 * 可读) * indirectly_writable(指定可向迭代器所引用的对象写入值) * weakly_incrementable(指定 semiregular 类型能以前后自增运算符自增) * incrementable(指定 weakly_incrementable 类型上的自增操作保持相等性,而且该类型为 equality_comparable) * input_or_output_iterator(指定该类型对象可以自增且可以解引用) * sentinel_for(指定类型为某个 input_or_output_iterator 类型的哨位类型) * sized_sentinel_for(指定可对一个迭代器和一个哨位应用 - 运算符,以在常数时间计算其距离) * input_iterator(指定类型为输入迭代器,即可读取其所引用的值,且可前/后自增) * output_iterator(指定类型为给定的值类型的输出迭代器,即可向其写入该类型的值,且可前/后自增) * forward_iterator(指定 input_iterator 为向前迭代器,支持相等比较与多趟操作) * bidirectional_iterator(指定 forward_iterator 为双向迭代器,支持向后移动) * random_access_iterator(指定 bidirectional_iterator 为随机访问迭代器,支持常数时间内的前进和下标访问) * contiguous_iterator(指定 random_access_iterator 为连续迭代器,指代内存中连续相接的元素) * indirectly_readable_traits(计算 indirectly_readable 类型的值类型) * iter_value_t(计算迭代器的关联类型) * iter_reference_t(计算迭代器的关联类型) * iter_difference_t(计算迭代器的关联类型) * iter_rvalue_reference_t(计算迭代器的关联类型) * iter_common_reference_t(计算迭代器的关联类型) * iterator_traits(为迭代器各项性质提供统一接口) * input_iterator_tag(用于指示迭代器类别的空类类型) * output_iterator_tag(用于指示迭代器类别的空类类型) * forward_iterator_tag(用于指示迭代器类别的空类类型) * bidirectional_iterator_tag(用于指示迭代器类别的空类类型) * random_access_iterator_tag(用于指示迭代器类别的空类类型) * contiguous_iterator_tag(用于指示迭代器类别的空类类型) ###
Defined in namespace std::ranges
* iter_move(将解引用迭代器的结果转型为其关联的右值引用类型) * iter_swap(交换两个可解引用对象所引用的值) ###
Defined in namespace std
* indirectly_readable(指定类型通过应用运算符 * 可读) * indirectly_writable(指定可向迭代器所引用的对象写入值) * weakly_incrementable(指定 semiregular 类型能以前后自增运算符自增) * incrementable(指定 weakly_incrementable 类型上的自增操作保持相等性,而且该类型为 equality_comparable) * input_or_output_iterator(指定该类型对象可以自增且可以解引用) * sentinel_for(指定类型为某个 input_or_output_iterator 类型的哨位类型) * sized_sentinel_for(指定可对一个迭代器和一个哨位应用 - 运算符,以在常数时间计算其距离) * input_iterator(指定类型为输入迭代器,即可读取其所引用的值,且可前/后自增) * output_iterator(指定类型为给定的值类型的输出迭代器,即可向其写入该类型的值,且可前/后自增) * forward_iterator(指定 input_iterator 为向前迭代器,支持相等比较与多趟操作) * bidirectional_iterator(指定 forward_iterator 为双向迭代器,支持向后移动) * random_access_iterator(指定 bidirectional_iterator 为随机访问迭代器,支持常数时间内的前进和下标访问) * contiguous_iterator(指定 random_access_iterator 为连续迭代器,指代内存中连续相接的元素) * incrementable_traits(计算 weakly_incrementable 类型的差类型) * indirectly_readable_traits(计算 indirectly_readable 类型的值类型) * iter_value_t(计算迭代器的关联类型) * iter_reference_t(计算迭代器的关联类型) * iter_difference_t(计算迭代器的关联类型) * iter_rvalue_reference_t(计算迭代器的关联类型) * iter_common_reference_t(计算迭代器的关联类型) * iterator_traits(为迭代器各项性质提供统一接口) * input_iterator_tag(用于指示迭代器类别的空类类型) * output_iterator_tag(用于指示迭代器类别的空类类型) * forward_iterator_tag(用于指示迭代器类别的空类类型) * bidirectional_iterator_tag(用于指示迭代器类别的空类类型) * random_access_iterator_tag(用于指示迭代器类别的空类类型) * contiguous_iterator_tag(用于指示迭代器类别的空类类型) ###
Defined in header
###
Defined in namespace std
* indirectly_unary_invocable(指定可调用类型能以解引用某个 indirectly_readable 类型的结果进行调用) * indirectly_regular_unary_invocable(指定可调用类型能以解引用某个 indirectly_readable 类型的结果进行调用) * indirect_unary_predicate(指定可调用类型,在以解引用一个 indirectly_readable 类型的结果进行调用时,满足 predicate) * indirect_binary_predicate(指定可调用类型,在以解引用两个 indirectly_readable 类型的结果进行调用时,满足 predicate) * indirect_equivalence_relation(指定可调用类型,在以解引用两个 indirectly_readable 类型的结果进行调用时,满足 equivalence_relation) * indirect_strict_weak_order(指定可调用类型,在以解引用两个 indirectly_readable 类型的结果进行调用时,满足 strict_weak_order) * indirectly_movable(指定可从 indirectly_readable 类型移动值给 indirectly_writable 类型) * indirectly_movable_storable(指定可从 indirectly_readable 类型移动值给 indirectly_writable 类型,且该移动可以通过中间对象进行) * indirectly_copyable(指定可从 indirectly_readable 类型复制值给 indirectly_writable 类型) * indirectly_copyable_storable(指定可从 indirectly_readable 类型复制值给 indirectly_writable 类型,且该复制可以通过中间对象进行) * indirectly_swappable(指定能交换两个 indirectly_readable 类型所引用的值) * indirectly_comparable(指定能比较两个 indirectly_readable 类型所引用的值) * permutable(指定在原位重排元素的算法的共用要求) * mergeable(指定通过复制元素将已排序序列归并到输出序列中的算法的要求) * sortable(指定重排序列为有序序列的算法的共用要求) * indirect_result_t(计算在解引用某组 indirectly_readable 类型的结果上调用可调用对象的结果) * projected(用于对接受投影的算法指定约束的辅助模板) * move_sentinel(用于 std::move_iterator 的哨位适配器) * common_iterator(适配一个迭代器类型及其哨位为一个公共迭代器类型) * default_sentinel_t(用于知晓其边界的迭代器的默认哨位) * counted_iterator(对到范围结尾距离进行跟踪的迭代器适配器) * unreachable_sentinel_t(始终与任何 weakly_incrementable 类型比较都不相等的哨位) ###
Defined in header
* ranges::advance(令迭代器前进给定的距离或到给定的边界) * ranges::distance(返回迭代器与哨位间的距离,或范围起始与结尾间的距离) * ranges::next(自增迭代器给定的距离或到边界) * ranges::prev(自减迭代器给定的距离或到边界) ###
Defined in header <array>
###
Defined in header <deque>
###
Defined in header <forward_list>
###
Defined in header <iterator>
###
Defined in header <list>
###
Defined in header <map>
###
Defined in header <regex>
###
Defined in header <set>
###
Defined in header <span>
###
Defined in header <string>
###
Defined in header <string_view>
###
Defined in header <unordered_map>
###
Defined in header <unordered_set>
###
Defined in header <vector>
###
Defined in namespace std
* ssize(返回容器或数组的大小) ###
Defined in header <ranges>
###
Defined in header <iterator>
###
Defined in namespace std::ranges
* ranges::begin(返回指向范围起始的迭代器) * ranges::cbegin(返回指向只读范围起始的迭代器) * ranges::end(返回指示范围结尾的哨位) * ranges::cend(返回指示只读范围结尾的哨位) * ranges::rbegin(返回指向范围的逆向迭代器) * ranges::crbegin(返回指向只读范围的逆向迭代器) * ranges::rend(返回指向范围的逆向尾迭代器) * ranges::crend(返回指向只读范围的逆向尾迭代器) * ranges::size(获得能在常数时间内计算大小的范围的大小) * ranges::ssize(获得能在常数时间内计算大小的范围的大小,并将它转换成有符号整数) * ranges::empty(检查范围是否为空) * ranges::data(获得指向连续范围的起始的指针) * ranges::cdata(获得指向只读连续范围的起始的指针) -----
###

类型支持(基本类型、RTTI、类型特性)

###
Defined in header<type_traits>
* is_scoped_enum(检查类型是否为有作用域枚举类型) ###
Defined in header<utility>
* to_underlying(转换枚举到其底层类型) ###
Defined in header<stacktrace>
* stacktrace_entry(栈踪中求值的表示) * basic_stacktrace(由栈踪条目组成的调用序列的近似表示) ###

动态内存管理

###
Defined in header<memory>
* out_ptr_t(与外来指针设置器交互,并在析构时重设智能指针) * out_ptr(以关联的智能指针和重设参数创建 out_ptr_t) * inout_ptr_t(与外来指针设置器交互,从智能指针获得初始指针值,并在析构时重设它) * inout_ptr(以关联的智能指针和重设参数创建 inout_ptr_t) * allocation_result(记录由 allocate_at_least 分配的存储的地址与实际大小) * allocate_at_least(经由分配器分配至少与请求的大小一样大的存储) ###

字符串

###
Defined in header<string>
* contains(检查字符串是否含有给定的子串或字符) ###
Defined in header<string_view>
* contains(检查字符串视图是否含有给定的子串或字符) --- ## 联系专栏 #### 零声教育,专注于c/c++Linux后台服务器开发架构技术学习提升。
每天晚上8点【免费技术直播】:[分享Linux,Nginx,ZeroMQ,MySQL,Redis,fastdfs,MongoDB,ZK,流媒体,CDN,P2P,K8S,Docker,TCP/IP,协程,DPDK等技术内容,立即学习。](https://ke.qq.com/course/417774?flowToken=1037711) #### 关注微信公众号【后台服务架构师】——【联系我们】,获取本repo最全PDF学习文档!