The C++ Standard Library - Nicolai M. Josuttis

The C++ Standard Library

Nicolai M. Josuttis

出版时间

1999-08-22

ISBN

9780201379266

评分

★★★★★
书籍介绍
The C++ Standard Library provides a set of common classes and interfaces that greatly extend the core C++ language. Josuttis' book not only provides comprehensive documentation of each library component, it also offers clearly written explanations of complex concepts, describes the practical programming details needed for effective use, and gives example after example of working code. This thoroughly up-to-date book reflects the newest elements of the C++ standard library incorporated into the full ANSI/ISO C++ language standard. In particular, the text focuses on the Standard Template Library (STL), examining containers, iterators, function objects, and STL algorithms.
AI导读
核心看点
  • 全面解析STL容器、迭代器与算法
  • 深入阐述迭代器分离数据与算法的设计思想
  • 提供大量可运行的代码示例与细节说明
适合谁读
  • 需要系统学习C++标准库的开发者
  • 希望深入理解STL设计原理的程序员
  • 寻找权威C++参考手册的技术人员
读前提醒
  • 本书适合作为工具书查阅,不建议通读
  • 建议直接阅读C++11或更新版本的重印版
  • 可跳读IO、国际化等较少使用的章节
读者共识
  • C++程序员必备的权威参考手册
  • 内容严谨全面,但篇幅较长较厚重
  • 示例代码丰富,有助于理解复杂概念

本导读基于书籍简介、目录、原文摘录、短评和书评生成,不等同于全文精读。

精彩摘录
  • "也就是最后元素的下一个位置"
  • "注意,一个算式如果明白指出型别,便带有一个优势:产生出来的pair将有绝对明确的型别。例如:"
  • "其结果与:"
  • "不同,后者第二元素的型别是double,默认。"
  • "很多接口在需要内部拷贝时,都通过constant reference获得原值。事实上,C++标准程序库的所有容器都如此,大致像这样:"
  • "However,std::move() doesn’t itself do any moving, but merely converts its argument into a so-called rvalue reference, which is a type declared with two ampersands: X&&. This new type stands for rvalues (anonymous temporaries that can appear only on the right-hand side of an assignment) that can be m"
  • "注意,这些操作符都只接受一个参数"
  • "注意:半开区间的意思是end是不包含在范围内的,也就是说begin和end如果都是容器的中的有效元素,end也不在其中。"
用户评论
文风朴实,通俗易懂。据说体系很严密,可惜体会不深。当工具书没有网站上查方便,而且也有点买椟还珠了。
STL入门
1.兴趣原因 13章 IO 跳着看完,14章 Internationalization 15章 Allocators 不想看了... 2.更适合当工具书随手翻阅;3.这是老版的书,有必要再去看一下 c++ 11 版本的。
STL 参考手册
前半部分看的是实体书,后半部分就是电子档了,查阅STL的时候还是得常翻翻
参考书一样跳着读。
挑着看的,一方面作为字典查阅(例子很棒),一方面了解 STL 的一些设计思想。
12,13,14,15章跳读,适合用作STL速查书
经常要用到stl的,不妨入手一本。
收藏