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.