HP aC++/HP C Programmer's Guide (B3901-90036; A.06.26; September 2011)
destructor A function that cleans up or deinitializes each object of a class immediately before the object is
destroyed. Destructors are executed when the program leaves the scope in which objects are defined
and when any object is destroyed by delete. Destructors have the same name as their class,
prefixed by a tilde, ~.
directed
instantiation
Template instantiation that is specified by the developer through an explicit instantiation or a compiler
command-line option.
E
exception An exception is a runtime error condition. Exception handling is a C++ mechanism that allows the
error detector to pass the error condition to the exception handler. An exception is raised by a
throw statement within a try block and handled by a catch clause. The ANSI/ISO C++
International Standard defines only synchronous exceptions.
explicit
instantiation
A method of instantiation that instantiates a template at the point of its use. You can code an explicit
template instantiation, as defined in the Final Draft International Standard, in your source file.
external
symbol
A name of a function or data item in an object file that you can link with other object files.
F
friend A class or a function that has access to data of a class and member functions. Friend has access
to the public, protected, and private members of a class.
function
template
A template that defines an unbounded set of related functions.
H
header file A C++ source file typically containing class or function declarations. It is referenced by other C++
source files using the #include preprocessor directive.
HP aC++ The latest C++ compiler from HP. It closely complies with most features of the ANSI/ISO C++
International Standard.
HP C++ An initial, pre-C++ draft proposed international standard C++ compiler from HP. It is based on the
cfront compiler and provides functionality for templates and exception handling.
I
include guards Preprocessor commands, such as, #ifndef, #define, and #endif, used in a header file to
prevent compiling that file more than once.
inline function A function whose code is copied in place of each function call.
instantiate To form an instantiation by binding a template to particular argument types.
instantiated
class
A class generated from a class template by instantiation.
instantiated
function
A function generated from a function template by instantiation.
instantiation A generated class or function (a definition) that is the result of binding a template to particular
argument types. Also known as a generation.
280 Glossary