HP OpenVMS Systems

C++ Programming Language
Content starts here

HP C++

HP C++

Class Library Reference Manual

Order Number: AA-PY3EC-TK

January 2005

This document describes a library of C++ classes.

Revision/Update Information: This is a revised manual.

Software Version: C++ Version 5.3 or higher
C++ Class Library Version 4.0

Hewlett-Packard Company Palo Alto, California

First Printing, September 1992
Revised, January 2005

© Copyright 2005 Hewlett-Packard Development Company, L.P.

Confidential computer software. Valid license from HP required for possession, use or copying. Consistent with FAR 12.211 and 12.212, Commercial Computer Software, Computer Software Documentation, and Technical Data for Commercial Items are licensed to the U.S. Government under vendor's standard commercial license.

The information contained herein is subject to change without notice. The only warranties for HP products and services are set forth in the express warranty statements accompanying such products and services. Nothing herein should be construed as constituting an additional warranty. HP shall not be liable for technical or editorial errors or omissions contained herein.

UNIX® is a registered trademark of The Open Group.

X/Open® is a registered trademark of X/Open Company Ltd. in the UK and other countries.

Intel® and Itanium® are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

This document is available on CD-ROM.

Contents Index


This manual describes the library of classes supplied with C++ Version 7.1 for OpenVMS systems. It contains detailed information on members of these classes (including member functions) and information on other associated functions, variables, and macros.

Intended Audience

This manual is intended for experienced programmers who have a basic understanding of the C++ language, and who are using C++ with the OpenVMS operating system in either a single or multiple platform environment. Some familiarity with the operating system is assumed.

Document Structure

This manual consists of an introductory chapter and 10 chapters describing each of the packages of predefined classes supplied with the C++ compiler.

Associated Documents

The following documents contain information related to this manual:

  • Using HP C++ for OpenVMS
    This manual supplies information needed to use C++ on OpenVMS systems.
  • Stroustrup, Bjarne. Stroustrup, The C++ Programming Language, 3rd Edition, Addison-Wesley, 1997. Reading, Massachusetts. Addison-Wesley, 1997.
    This text combines a user guide and language reference manual.
  • Stroustrup, Bjarne and Margaret Ellis. The Annotated C++ Reference Manual. Reading, Massachusetts. Addison-Wesley, 1990.
    This text contains the current language definition of C++.

  • C Run-Time Library Reference Manual for OpenVMS Systems
    This manual describes C run-time library routines that are supported for C++.
  • HP C++ Installation Guide for OpenVMS
    This guide supplies information needed to ensure that the C++ Class Library installs correctly on OpenVMS systems and is accessible to the C++ compiler.


The following product names may appear in this manual:

  • HP OpenVMS Industry Standard 64 for Integrity Servers
  • OpenVMS I64
  • I64

All three names (the longer form and the two abbreviated forms) refer to the version of the OpenVMS operating system that runs on the Intel® Itanium® architecture.

Table 1 lists the conventions used in this manual.

Table 1 Conventions Used in this Manual
Conventions Meaning
class complex {
A vertical ellipsis indicates that some intervening program code or output is not shown. Only the more pertinent material is shown in the example.
,... A horizontal ellipsis in a syntax description indicates that you can enter additional parameters, options, or values. A comma preceding the ellipsis indicates that successive items must be separated by commas.
The complex class...
The get() function...
Monospaced type denotes the names of C++ language elements, and also the names of classes, members, and nonmembers. Monospaced type is also used in text to reference code elements displayed in examples.
italic Italic type denotes the names of variables that appear as parameters or in arguments to functions.
boldface Boldface type in text indicates the first instance of terms defined in text.

Reader's Comments

You may send your comments or suggestions regarding this manual, or any C++ document, by electronic mail to the following Internet address:

Changes for C++ Version 7.1 for OpenVMS I64

The following class library changes apply to C++ Version 7.1 and higher for OpenVMS I64 systems:

  • The tasks and complex packages have been removed. The recommended replacements are the pthreads routines and complex template class, respectively, from the C++ standard library.
  • In the String class, the char*() operator, which converts String to a pointer to char , has been removed. The String class has a const char*() operator, which can be used instead of the removed one.

Next Contents Index