Choose between the Standard C++ Library and the IBM Open Class Library (IOC) if you are going to use either.
The two libraries are not entirely compatible.
Continue using the IOC if you are adding to code that already uses the IOC extensively.
Consider the strengths and weaknesses of each library as a whole by reading the on-line documentation for each.
The table below list categories of classes that each library have in common where there are differences that could affect your choice of libraries. Keep in mind that the IOC includes categories of classes such as multimedia and 2dgraphics which are not found at all in the Standard C++ Library.
| Common Category of Classes | Considerations when using IBM Open Class Library (IOC) | or | Considerations when using Standard C++ Library |
| Iostream | Supports wchar streams Locale sensitivity built-in |
||
| Numerics | Supports complex only | Supports linear algebra and complex | |
| Strings | Whether to use IText or IString IText versus IString IText has no numeric support IText is tied to the IOC Localization and 2DGraphics Frameworks IText has styles (e.g. highlighting, italics) IString uses styles via changing fonts IString is used by User Interface Classes |
Supports wide character strings | |
| Collections | Uses collection classes Richer functionality through more Abstract Data Types More complicated to use than Standard C++ Library Uses object-oriented style |
Uses Standard Template
Library Higher performance, smaller code generation Uses generic programming style |
|
| Localization | Uses Internationalization Framework Uses locales and Unicode Uses Transcoding classes |
Uses Standard Library
localization Used by Iostreams |
The C++ standard library is part of the international standard for C++ and is included with VisualAge C++, V 4.0.
The standard library provides C++ functionality which aims at compiler independence, usefulness, and efficiency. The library includes a set of container classes and algorithms referred to as the Standard Template Library (STL).
Stroustrup writes about the standard library, including its design constraints, from chapter 16 forward to 22. The other major and more detailed source provided with this compiler is the Standard C++ library documentation by Dinkumware.
