条款54:让自己熟悉包括 TR1 在内的标准程序库
Familiarize yourself with the standard library, including TR1.
C++ 98 列入 C++ 标准程序库的主要部分:
STL(Standard Template Library);
Iostreams,覆盖用户自定缓存功能、国际化I/O,以及预先定义好的对象 cin,cout,cerr 和 clog;
国际化支持,包括多区域(multiple active locales)能力;
数值处理,包括复数模板(complex)和纯数值数组(valarray);
异常阶层体系(exception hierarchy);
C89 标准程序库;
TR1,Techenical Report 1:
智能指针(smart pointers);
tr1::function
;tr1::bind
;Hash tables,用来实现 sets,multisets,maps 和 multi-maps;
正则表达式;
Turples(变量组);
tr1::array
本质上是个”STL化”数组;tr1::mem_fn
;tr1::reference_wrapper
;随机数生成工具;
数学特殊函数;
C99兼容;
Type traits;
tr1::result_of
用来推导函数调用的返回类型;
Last updated
Was this helpful?