C/C++ Programmer's Guide (G06.25+)
Using the Standard C++ Library
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
5-3
User Documentation
User Documentation
Available using the HP NonStop Technical Library (NTL) software:
•
VERSION3: Standard C++ Library Reference ISO/IEC (VERSION3)
•
VERSION2: Standard C++ Library User Guide and Tutorial and the
 Standard C++ Library Class Reference 
•
VERSION1: AT&T C++ Reference, Release 3 or The Annotated C++ Reference 
Manual by Margaret Ellis and Bjorne Stroustrup (these books are not available on 
NTL).
Features of the Standard C++ Library 
(VERSION3)
Caution. The VERSION3 documentation contains descriptions of an underlying C library that 
is not the same in every case as the C library supported on HP NonStop systems. The 
descriptions of those C functions might not apply to the NonStop C run-time library.
VERSION3 Feature Advantages
C++ Standard Compliant The language and library provide full compliance with the 
ANSI/ISO C++ Standard, with very few exceptions. ANSI/ISO 
compliance simplifies porting applications to the NonStop 
platform.
Improved exception 
handling
Type checking for throws and catches has been improved and 
is tighter than for VERSION2. Type IDs (names beginning with 
__TID_) are used to match throws and catches. The "const-
ness" of the catch must match that of the throw. For example, if 
"goodbye world" is thrown, the catch must expect a const 
char *.
Template support Templates are now fully supported, including templates as 
parameters to templates, and explicit qualification of templates.
Support for DLLs Beginning with G06.20, both VERSION2 and VERSION3 
libraries fully support using dynamic-link libraries (DLLs). You 
must use the latest libraries in a DLL environment; VERSION1 
does not support the use of DLLs.
Floating point Both IEEE_FLOAT and TANDEM_FLOAT are supported by 
VERSION2 and VERSION3. All object files that make up a 
running process should be consistent in the use of floating-
point type. VERSION1 does not support IEEE_FLOAT.
Pthreads To ensure that the same thread is used to throw and catch an 
exception, Pthreads and the C++ VERSION2 or VERSION3 
run-time libraries store some state information in variables in 
the C++ library. This functionality has been implemented in 
both VERSION3 and VERSION2.










