C/C++ Programmer's Guide (G06.25+)
Using the Standard C++ Library
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
5-9
VERSION2 Standard C++ Library Example Files
•
Specifying the header-file name rwnew includes both new.h and the header file
rwnew from the Standard C++ Library (as renamed for the HP implementation).
#include <rwnew>
//includes standard header "new.h” as well as “new" (renamed
rwnew) from //Standard C++ Lib (T5895)
•
Specifying the header-file name stdexcept includes stdexcept in the C++ run-
time library in the HP NonStop implementation (not the header file stdexcept,
renamed rwstdex, in the Standard C++ Library).
#include <stdexcept>
//includes header "stdexcept" from C++ RTL V2 (T0179)
•
Specifying the header-file name rwstdex includes the header file stdexcept
from the Standard C++ Library (as renamed for the HP implementation).
#include <rwstdex>
//includes header "stdexcept" from Standard C++ Lib V2
(T5895)
VERSION2 Standard C++ Library Example Files
Example files provided with the VERSION2 Standard C++ Library are located in
$SYSTEM.ZLIBCPL on the NonStop system.
Table 5-4. VERSION2 Standard C++ Library Example Files (page 1 of 4)
Example File Description of Contents
MAKEEXAM MAKE file for the examples. It is an OBEY command file.
CPLUS Macro used by MAKEEXAM to build each test. You need to
modify this file to reflect your own environment.
LINKIT Contains instructions to nld for linking each test. This file is
used by CPLUS. You need to modify this file to reflect your
own environment.
ACCUMC Manual Example Source File
ADJDIFFC Manual Example Source File
ADVANCEC Manual Example Source File
AUTOPTRC Manual Example Source File
BINDERSC Manual Example Source File
BITTESTC Manual Example Source File
BSEARCHC Manual Example Source File
COMTESTC Manual Example Source File
COPYEXC Manual Example Source File
COUNTC Manual Example Source File
DEQUEC Manual Example Source File
DISTANCC Manual Example Source File