9.10.  _________________________________________269

9.9.2.  

         -
  .       -
;        
 .        -
  .

  stl_iadp.cpp

//  

include <iostream>
^include <vector>
using namespace std;

template <class Forwlter>
void print(Forwiter first, Forwiter last, const char* title)

/

cout  title  endl;

while ( first != last)

cout  *first++  '\t';

cout  endl;

}

int main()

{

int data[3] = { 9, 10, 11};

vector<int> d(data, data + 3);

vector<int>::reverse_ifcerator p = d.rbegin();

print(d.begin(), d.end(), "");

print(p, d.rend(), "");

}

       ,  -
  print ()    d.

    iterator    .2.4, 
,  .427.

9.10. 

  STL    .

   STL

  

    

   

  