File tree Expand file tree Collapse file tree 13 files changed +18
-18
lines changed
trans/boost-cpp-app-dev-cb Expand file tree Collapse file tree 13 files changed +18
-18
lines changed Original file line number Diff line number Diff line change 1- # 前言
1+ # 零、 前言
22
33如果你想利用 Boost 和 C++ 的真正力量,避免在什么情况下使用哪个库的困惑,那么这本书就是为你准备的。
44从 Boost C++ 的基础知识开始,您将继续学习 Boost 库如何简化应用开发。您将学习转换数据,例如字符串到数字、数字到字符串、数字到数字等等。管理资源将成为小菜一碟。您将看到在编译时可以做什么样的工作,以及 Boost 容器可以做什么。您将学到开发高质量、快速和可移植应用的所有知识。写一次程序,然后就可以在 Linux、Windows、macOS、安卓操作系统上使用了。从操作图像到图表、目录、计时器、文件和网络,每个人都会发现一个有趣的话题。
Original file line number Diff line number Diff line change 1- # 开始编写应用
1+ # 一、 开始编写应用
22
33在本章中,我们将介绍:
44
Original file line number Diff line number Diff line change 1- # 管理资源
1+ # 二、 管理资源
22
33在本章中,我们将涵盖以下主题:
44
Original file line number Diff line number Diff line change 1- # 转换和铸造
1+ # 三、类型转换
22
33在本章中,我们将介绍:
44
77* 将数字转换成数字
88* 将用户定义的类型转换为字符串或从字符串转换
99* 转换智能指针
10- * 铸造多态对象
10+ * 转换多态对象
1111* 解析简单输入
1212* 解析复杂输入
1313
@@ -623,9 +623,9 @@ Boost 库有很多智能指针转换的功能。它们都接受一个智能指
623623
624624* ` Boost.SmartPointer ` 库文档包含更多关于位于[ http://boost.org/libs/smart_ptr/pointer_cast.html ] ( http://boost.org/libs/smart_ptr/pointer_cast.html ) 的标准库的指针强制转换的示例
625625* ` boost::shared_ptr ` 的铸件参考可在[ http://boost.org/libs/smart_ptr/shared_ptr.htm ] ( http://boost.org/libs/smart_ptr/shared_ptr.htm ) 获得
626- * 本章中的* 铸造多态对象 * 配方将向您展示一种更好的动态铸造方法
626+ * 本章中的* 转换多态对象 * 配方将向您展示一种更好的动态转换方法
627627
628- # 铸造多态对象
628+ # 转换多态对象
629629
630630想象一下,一些程序员设计了这样一个糟糕的接口,如下所示(这是一个很好的例子,说明了接口不应该如何编写):
631631
@@ -694,7 +694,7 @@ c++ 标准库缺少`polymorphic_cast`和`polymorphic_downcast`。
694694
695695* 最初,` polymorphic_cast ` 的想法是在《C++ 编程语言》* 比雅尼·斯特劳斯特鲁普* 一书中提出的。关于不同主题的更多信息和一些好主意,请参考这本书。
696696* 官方文件可能也有帮助;在[ http://boost.org/libs/conversion ] ( http://boost.org/libs/conversion ) 有售。
697- * 有关铸造智能指针的更多信息 ,请参考之前的配方。
697+ * 有关转换智能指针的更多信息 ,请参考之前的配方。
698698
699699# 解析简单输入
700700
Original file line number Diff line number Diff line change 1- # 编译时技巧
1+ # 四、 编译时技巧
22
33在本章中,我们将介绍以下内容:
44
Original file line number Diff line number Diff line change 1- # 多线程操作
1+ # 五、 多线程操作
22
33在本章中,我们将介绍:
44
Original file line number Diff line number Diff line change 1- # 操作任务
1+ # 六、 操作任务
22
33在本章中,我们将介绍:
44
@@ -1549,7 +1549,7 @@ C++ 11 采用了`boost::current_exception`、`boost::rethrow_exception`和`boost
15491549# 请参见
15501550
15511551* http://boost.org/libs/exception 的`Boost.Exception`官方文档包含了很多关于实施和限制的有用信息。您可能还会发现一些本食谱中没有涉及的信息(例如,如何向已经抛出的异常添加附加信息)。
1552- * 本章的第一个食谱为你提供了`tasks_processor`课程的信息。*将字符串转换为数字 r* 来自[第 3 章](03.html#515F20-712b4ba1126a4c7c89e1d44de61b4bdd)、*转换和铸造 *的 ecipe 描述了本食谱中使用的`Boost.LexicalCast`库。
1552+ * 本章的第一个食谱为你提供了`tasks_processor`课程的信息。*将字符串转换为数字 r* 来自[第 3 章](03.html#515F20-712b4ba1126a4c7c89e1d44de61b4bdd)、*转换和转换 *的 ecipe 描述了本食谱中使用的`Boost.LexicalCast`库。
15531553
15541554# 获取和处理系统信号作为任务
15551555
Original file line number Diff line number Diff line change 1- # 操纵字符串
1+ # 七、 操纵字符串
22
33在本章中,我们将介绍:
44
Original file line number Diff line number Diff line change 1- # 元编程
1+ # 八、 元编程
22
33在本章中,我们将介绍:
44
Original file line number Diff line number Diff line change 1- # 容器
1+ # 九、 容器
22
33在本章中,我们将介绍:
44
You can’t perform that action at this time.
0 commit comments