3. 1.4 蟆 襦蠏碁覦 STL
Genericity of components
The use of templates allow you to reduce the number m to 1
( m is possible data types ).
STL algorithms, however, do not work directly with containers but with
Interface object, that is, iterators which access containers.
4. 1.4 蟆 襦蠏碁覦 STL
Abstract and implicit data types
Implicit data types are not important in the sense of an object-oriented
analysis which puts the emphasis on the interfaces (methods) if an abstract
data types. They, however, are very important for design and
Implementation because they often determine the run time behavior.
5. 1.4 蟆 襦蠏碁覦 STL
Containers
谿 貉企 ( sequence container )
vector, list, deque,
郁 貉企 ( associative container )
map, set,
Iterators
Pointer-like objects
Algorithms
The Template algorithms work with iterators that access containers.
6. 1.4 蟆 襦蠏碁覦 STL
begin() , end() 螻襴讀 last iterator 襷讌襷 襯
螳襴れ .
rbegin() , rend()
past-the-end
Call by value