Opentopia Directory Encyclopedia Tools

Technical Report 1

Encyclopedia : T : TE : TEC : Technical Report 1


Technical Report 1 (TR1) is a draft document specifying additions to the C++ Standard Library such as regular expressions, smart pointers, hash tables, and random number generators. TR1 is not yet standardized, but likely will be part of the next official standard mostly as it stands now. In the meantime, vendors can use this document as a guide to create extensions. The report's goal is "to build more widespread existing practice for an expanded C++ standard library."[link]

Overview

Compilers need not include the TR1 components to be conforming, as TR1 is not yet officially part of the standard. Much of it is available from Boost, and several compiler/library distributors currently implement all or part of the components.

TR1 is not a complete list of additions to the library that will appear in the next standard; for example, the next standard, C++0x, may include support for threading. There is also a second technical report, TR2, planned [link].

The new components are in the std::tr1 namespace to distinguish them from the current standard library.

Components

TR1 includes the following components:

General Utilities

Reference Wrapper

Smart Pointers

These four modules are added to the header file:

Function Object Binders

Function Return Types

mem_fn

Numerical Facilities

Random Number Generation

Mathematical Functions

Fixed Size

Hash Tables

Regular Expressions

C Compatibility

C++ is designed to be compatible with the C programming language, but is not a strict superset of C due to diverging standards. TR1 attempts to reconcile some of these differences through additions to various headers in the C++ library, such as , , , etc. These changes help to bring C++ more in line with the C99 version of the C standard (not all parts of C99 are included in TR1).

See also

External links

  • http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1836.pdf - pdf of the Proposed Draft
  • http://aristeia.com/EC3E/TR1_info_frames.html - Scott Meyers' TR1 page, links to documents and articles

 


From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.

Search Titles
0123456789
ABCDEFGHIJ
KLMNOPQRST
UVWXYZ?

E-mail this article to:

Personal Message: