The Page continues the discussion of Accelerated C++: Practical Programming by Example (C++ In-Depth Series).
C++ provides templates as an ability to focus on writing generic algorithms for any number of data types. A common example is the stl vector container. When you instantiate the vector obect you provide the type of object that the vector will contain. (vector<int> for example)
In discussing generic function this chapter also focuses on iterators and the different types: Sequential read-only, Sequential write-only, Sequential read-write, Reversible, and Random access.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment