Associative Arrays in C++ - Map(C++)
An "associative array" is a one-dimensional
array of unbounded size whose subscripts can be
non-integral types such as character
strings.
Traditionally associated with dynamically typed languages such as AWK
and SNOBOL4 ,
associative arrays have applications ranging from compiler symbol tables
to databases and commercial data processing.
This section describes a family of C++ class definitions
for associative arrays,
including programming examples,
application suggestions, and notes on performance.
It concludes with a complete programming example which serves the same purpose
as a well-known system command but is much smaller and simpler.
Next topic:
Introduction
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 02 June 2005