This C++ library can only be used in the C++ V3 mode of the compiler. This library includes the following interfaces:
A string class
<string>
Container classes
<bitset>
<deque>
<list>
<map>
<queue>
<set>
<stack>
<vector>Iterators
<iterator>
Generic algorithms
<algorithm>
Numeric classes and operations
<complex>
<numeric>
I/O classes
<iostream.h>
<fstream.h>
<strstream.h>
<stdiostream.h>
<iomanip.h>
The I/O classes are not standard-compliant and correspond to the Cfront V3.0.3-compatible I/O library iostream.
The header files for the above interfaces are contained in the library SYSLIB.CRTE, and the modules are contained in the library SYSLNK.CRTE.STDCPP.
All names of the C++ library, except for the I/O classes, are available in the std
namespace.
The following header files (also contained in SYSLIB.CRTE), in which all ANSI C library functions are defined in the std
namespace, constitute a further component of the C++ library. The names of these header files are derived from the names of the corresponding C headers as follows: each name is preceded by the letter c
, and the .h
suffix is dropped.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using the library
Program development in the BS2000 environment (SDF)
The library SYSLIB.CRTE must be searched for standard headers at compilation. This can be ensured by specifying the search for standard headers with the option STD-INCLUDE-LIBRARY= *STANDARD-LIBRARY (default) in the MODIFY-INCLUDE-LIBRARY statement.
The program must be linked with the BIND statement of the compiler, and the entry RUNTIME-LANGUAGE=*CPLUSPLUS(MODE=*V3-COMPATIBLE) must be specified in the MODIFY-BIND-PROPERTIES statement.
For further details see "MODIFY-BIND-PROPERTIES".
Program development in the POSIX environment
In order to include header files and link in the required modules, the C++ V3 mode (-X V3-COMPATIBLE
) must be specified in the CC
command. For more details, see also the manual “POSIX Commands of the C/C++ Compiler”.
Documentation
This C++ library is described in detail in the following manual: “Standard C++ Library V1.2, User ́s Guide and Reference” [6] (one volume).
A description of the I/O classes compatible with Cfront V3.0.3 can be found in the “Cfront C++ Library”, Reference Manual [5].