C ++ tr1 and boost libraries are recommended.

Source: Internet
Author: User
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 ). the following are the new libraries contained in tr1:
  • TheSmart pointers Tr1: shared_ptrAndTr1: weak_ptr.
  • Tr1: Function, Which makes it possible to represent anyCallable entity(I. e., any function or function object) whose signature is consistent with a target signature.
  • Tr1: bind, Which does everything the STL BindersBind1stAndBind2ndDo, plus much more
  • Hash TablesUsed 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 ofPairTemplate that's already in the standard library.
  • Tr1: Array, Essential tially an "stlified" array, I. e., An array supporting member functions likeBeginAndEnd.
  • 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 GenerationFacilities that are vastly superior toRandFunction that C ++ inherited from C's standard library.
  • Mathematical Special Functions, Including Laguerre polynomials, Bessel functions, complete elliptic integrals, and more.
  • C99 compatibility extensions, A collection of functions and templates designed to bring functions 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 CILS.
10 of the 14 libraries are from the boost library. During C ++ development, try to use STL and boost libraries as much as possible, especially the libraries listed in tr1.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.