Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

The modern C++ library in version 1

&pagelevel(4)&pagelevel

This C++ library can only be used in the language modes C++ 2017 and C++ 2020. This library includes the following interfaces (based on the chapters of the C++ standard of 2017):

  • Some auxiliary classes (Chapter 23), i.a. Allocator, function objects, smart pointer, pairs, tuples and more.

  • String classes (Chapter 24), especially a string of char elements that can handle EBCDIC well,

  • Classes for treatment of locale (Chapter 25),

  • Container classes (Chapter 26), especially bitset, deque, queue, vector, list, map, multimap, set ,
  • Iterators (chapter 27),
  • generic algorithms (Chapter 28), i.a. search, sort, minimum, maximum, partition, permute,

  • numeric classes (Chapter 29), including complex numbers or arithmetic-value arrays,

  • Input and Output (Chapter 30), in this library the implementation is template-based,

  • regular expressions (chapter 31).

The classes for atomic operations (Chapter 32) and threads (Chapter 33) are not offered.

The include files for the interfaces mentioned above are contained in the library SYSLIB.CRTE.CXX01, the modules in the library SYSLNK.CRTE.CXX01.

The interface of the C++ library is defined in namespace std. References to the library should use this namesspace. The implementation is in namespace std::__CXX01.

Another component of the C++ library are the include files listed below (also contained in SYSLIB.CRTE.CXX01), in which all ANSI C library functions are defined in the namespace std

The names of these include files are derived from the names of the ANSI C include files as follows: The name is preceded by the letter c, the suffix .h is omitted.

<cassert>

<cinttypes>

<csetjmp>

<cstddef>

<ctgmath>

<cctype>

<ciso646>

<csignal>

<cstdint>

<ctime>

<cerrno>

<climits>

<cstdalign>

<cstdio>

<cuchar>

<cfenv>

<clocale>

<cstdarg>

<cstdlib><cwchar>
<cfloat><cmath><cstdbool><cstring><cwctype>

Using the library

Program development in BS2000 environment (SDF)

The library version 1 has to be selected (default).

During compilation, the library SYSLIB.CRTE.CXX01 must be searched for standard includes. This is ensured if the option STD-INCLUDE-LIBRARY=*STANDARD-LIBRARY is specified in the MODIFY-INCLUDE-LIBRARY statement for the search for the standard includes (default).

The program must be linked with the BIND statement of the compiler. The specification RUNTIME-LANGUAGE = *CPLUSPLUS (MODE= *LATEST/*2017/*2020) is required in the MODIFY-BIND-PROPERTIES statement. The default specification is *LATEST.

For more details see "MODIFY-BIND-PROPERTIES".

Program development in POSIX environment

To insert the include files and bind the modules, the CC command must specify the C++ 2017 mode or the C++ 2020 mode. C++ 2020 mode is the default for the CC command. The library version 1 has to be selected (default). For further details see the manual "POSIX Commands of the C/C++ Compiler" [1].

Documentation

The standard C++ library is documented in the common C++ literature.