推荐使用C++ TR1和boost库

  We already know what some of the new library functionality will be, because it's been specified in a document known as TR1 ("Technical Report 1" from the C++ Library Working Group).
 
以下是TR1中包含的新的库
  • The smart pointers  tr1::shared_ptr and tr1::weak_ptr.
  • tr1::function, which makes it possible to represent any callable entity (i.e., any function or function object) whose signature is consistent with a target signature.
  • tr1::bind, which does everything the STL binders bind1st and bind2nd do, plus much more
  • Hash tables used to implement sets, multisets, maps, and multimaps. 
  • Regular expressions, including the ability to do regular expression-based search and replace operations on strings, to iterate through strings from match to match, etc.
  • Tuples, a nifty generalization of the pair template that's already in the standard library.
  • tr1::array, essentially an "STLified" array, i.e., an array supporting member functions like begin and end.
  • tr1::mem_fn, a syntactically uniform way of adapting member function pointers.
  • tr1::reference_wrapper, a facility to make references act a bit more like objects.
  • Random number generation facilities that are vastly superior to the rand function that C++ inherited from C's standard library.
  • Mathematical special functions, including Laguerre polynomials, Bessel functions, complete elliptic integrals, and many more.
  • C99 compatibility extensions, a collection of functions and templates designed to bring many new C99 library features to C++.
  • Type traits, a set of traits classes to provide compile-time information about types.
  • tr1::result_of, a template to deduce the return types of function calls.
这14个库中,有10个来自于boost库。 在C++开发过程中,尽可能的使用STL和boost库,尤其是列在TR1中的库。
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值