276                      9. ,    STL

         
(.  .5,  ,  . 437)    string (. -
 .6,  ,  . 438).       .

9.13.  

       C++   -
 ,        ,    -
  .     .  , -
          
        .
  :

template <class TYPE>
void maxelement(TYPE a[], TYPE& max, int size);

template <class TYPE>
int find(TYPE* data);

   :

template <class TYPE>
TYPE convertfint i) { TYPE temp(i); return temp; }

  ,     ,    -
,  ANSI.      :

convert<double>(i + j);   //  
// 

      ,  
      .   -
       ,  ,  -
   .       ,
      :

template <class TYPE>     //   
class convert_it {

static TYPE convert(int i)

{TYPE temp(i); return temp; }



1.  C++      -
.         ,    -
  .

2.  ,       .   
-,        -
  -,     . -
,     -   .