There are three building blocks in STL:
- Containers
- Algorithms
- iterators
. , - ; , , , . . , - . , .
, , , , . , , , , . , . , , , "" , , , - .
, , . : , . . " ", . , , . , , .
.
, . , . . copy():
template<class In, class Out>
Out copy(In first, In last, Out res)
{
while( first != last ) {
*res = *first;
++first;
++res;
}
return res;
}
copy() , templated In Out. , first last, res. , ++first ++res. , x = *first , *res = x. . , In Out, .