Effective C++(tr1)


author:

  • luixiao1223
    title: TR1

the standard C++ library specified by C++98

The Standard Template Library (STL),

  1. including containers (vec- tor, string, map, etc.);
  2. iterators;
  3. algorithms (find, sort, transform, etc.);
  4. function objects (less, greater, etc.);
  5. various container
  6. function object adapters (stack, priorityqueue, memfun, not1,
    etc.).

Iostreams,

  1. including support for user-defined buffering,
  2. internationalized IO,
  3. the predefined objects cin, cout, cerr, and clog.

Support for internationalization

including the ability to have multiple active locales. Types like
wchart (usually 16 bits/char) and wstring (strings of wcharts)
facilitate working with Unicode.

Support for numeric processing

including templates for complex numbers (complex) and arrays of pure
values (valarray).

An exception hierarchy

including the base class exception, its derived classes logicerror and
runtimeerror, and various classes that inherit from those.

C89’s standard library.

Everything in the 1989 C standard library is also in C++.

tr1 {#tr1-1}

std::tr1::(name)

智能指针

tr1::shared_ptr and tr1::weak_ptr

function

它是一个template

void registerCallback(std::tr1::function<std::string (int)> func);

bind

hash tables

tr1::unordered_set, tr1::unordered_multiset, tr1::unordered_map, and tr1::unordered_multimap

正则表达式

tuples

array

大小固定,并不是用动态内存分配

mem_fn

reference_wrapper

随机数工具

数学特殊函数

C99兼容扩充

第二组TR1

Type Traits

result_of

如果要使用boost的版本

namespace std {
  namespace tr1 = ::boost;
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值