C++ Standard Library, The: A Tutorial and Reference
I l@ve RuBoard


2.1 History
The standardization of C++ was started in 1989 and finished at the end of 1997, although some formal motions delayed the final publication until September 1998. The result was a reference manual with approximately 750 pages, published by the International Standards Organization (ISO). The standard has the title "Information Technology — Programming Languages — C++." Its document number is ISO/IEC 14882-1998, and it is distributed by the national bodies of the ISO, such as the ANSI in the United States.
[1] At the time this book was written, you could get the C++ standard at the ANSI Electronics Standard Store for $ 18.00 (US;
see ).
The standard was an important milestone for C++. Because it defines the exact contents
and behavior of C++, it makes it easier to teach C++, to use C++ in applications, and to port C++ programs to different platforms. It also gives users greater freedom of choice regarding different C++ implementations. Its stability and portability help library providers and tool providers as well as implementers. Thus, the standard helps C++ application developers build better applications faster, and maintain them with less cost and effort.
Part of the standard is a standard library. This library provides core components for I/O,
strings, containers (data structures), algorithms (such as sort, search, and merge), support for numeric computation, and (as could be expected from an international standard) support for internationalization (such as different character sets).
You may wonder why the standardization process took almost 10 years, and if you know some details about the standard you might wonder why after all this time it is still not
perfect. Ten years, in fact, was not enough time! Although, according to the history and the context of the standardization process, a lot was accomplished. The result is usable in practice, but it is not perfect (nothing ever is).
The standard is not the result of a company with a big budget and a lot of time. Standards organizations pay nothing or almost nothing to the people who work on developing
standards. So, if a participant doesn't work for a company that has a special interest in the standard, the work is done for fun. Thank goodness there were a lot of dedicated people who had the time and the money to do just that.
The C++ standard was not developed from scratch. It was based on the language as
described by Bjarne Stroustrup, the creator of C++. The standard library, however, was not based on a book or on an existing library. Instead, different, existing classes were
integrated. Thus, the result is not very homogeneous. You will find different design
principles for different components. A good example is the difference between the string class and the STL, which is a framework for data structures and algorithms:
[2] You may wonder why the standardization process did not design a new library from scratch. The major purpose of
standardization is not to invent or to develop something; it is to harmonize an existing practice.
String classes are designed as a safe and convenient component. Thus, they provide
an almost self-explanatory interface and check for many errors in the interface.
The STL was designed to combine different data structures with different algorithms
while achieving the best performance. Thus, the STL is not very convenient and it is
not required to check for many logical errors. To benefit from the powerful framework
27页 5财富值 Unit 2 history(1) 16页 1财富值 Chapter 1-2 American His... 108页 5财富值 history world war1,2 28页 2财富值...
英美国家概况 英国历史 British history英美国家概况 英国历史 British history隐藏>> 2.1 Religious Reformation Reasons—2 religious camps: Catholic and ...
英美概况第二讲(UK History)_政史地_高中教育_教育专区。英国历史英语国家社会与文化入门 An Introduction to the Society and Culture of Major English-Speaking...
History_其它语言学习_外语学习_教育专区。JPOIJ54更新日志: 2012.03.07 新增功能: 1. 新增对ipa格式的手机助手(手机版)的支持。 2. 熊猫看书新的书籍格式的...
? ? ? ? ? 1 Prehistory(史前时代) 1.1 Paleolithic 1.2 Neolithic 2 Ancient era (传说时代) 2.1 Xia Dynasty 2.2 Shang Dynasty 2.3 Zhou Dynasty ...
case history 37页 1下载券 Indian History 16页 1下载券 British history 58页 免费 Chinese history 41页 1下载券History...
history 2页 免费 History 歌词 2页 免费 American History 14页 1下载券 case history 37页 1下载券 Indian History 16页 1下载券 British history 58页 ...
history 2页 免费 History 歌词 2页 免费 American History 14页 1下载券 case history 37页 1下载券 Indian History 16页 1下载券 British history 58页 ...
Chinese history 41页 1下载券 History 暂无评价0人阅读0次下载举报文档 jhwqoihdo 更新...
2 REVISION HISTORY ... 4 1. GENERAL DESCRIPTION ......
热门文档