The Standard C++ Library and the IBM Open Class Library (IOC) are not entirely compatible. Choose between them if you are going to use either.
Continue using the IOC if you are adding to code that already uses the IOC extensively. Otherwise, consider the strengths and weaknesses of each library as a whole by reading the online documentation for each.
The table below lists the categories of classes that the libraries have in common if there are differences that could affect your choice of libraries. The IOC also includes categories of classes such as multimedia and 2-D graphics, which are not found at all in the Standard C++ Library.
| Common Category of Classes | Considerations When Using IBM Open Class Library (IOC) | 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 Internationalization and 2-D Graphics 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 the 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 C++ Library
localization Used by I/O Stream classes |
The Standard C++ Library is part of the international standard for C++ and is included with VisualAge C++, V 4.0.
The Standard C++ Library provides functionality that strives for 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 Dinkum C++ Library Reference.
![]()
