HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
6 Standardizing Your Code
HP aC++ largely conforms to the ISO/IEC 14882 Standard for the C++ Programming
Language (the international standard for C++). This chapter discusses the following topics:
• “HP aC++ Keywords” (page 171)
• “Overloading new[] and delete[] for Arrays” (page 187)
• “Standard Exception Classes” (page 188)
• “Exceptions Thrown by the Standard C++ Library” (page 190)
• “type_info Class” (page 190)
• “Unsupported Functionality” (page 191)
HP aC++ Keywords
HP aC++ supports the following list of keywords. Keywords cannot be abbreviated and
must always be entered in lowercase letters.
Table 10 HP aC++ Keywords
• static_cast• friend• and
• and_eq • template• inline
• mutable• bitand • this
• throw• namespace• bitor
• bool • true• new
• not• catch • try
• typeid• not_eq• class
• compl • typename• operator
• or• const (also an ANSI C keyword) • using
• virtual• or_eq• const_cast
• delete • volatile (also an ANSI C
keyword)
• private
•• protecteddynamic_cast
• wchar_t
•• publicexplicit
• xor
•• reinterpret_castfalse
• xor_eq
bool Keyword
The keyword bool represents a data type. Variables and expressions of type bool can
have a value of either true or false. The value of true equals 1. The value of false
equals 0.
HP aC++ Keywords 171