. 14. ______________________________________________399

         -
,    :

swap(i, j);   // int i, j;   = int; !
swap(cl, c2); // complex cl, c2;   = complex; !
swap(i, ch); //!  i; char ch;   ?

      :

   

1.   (   )  -
 .

2.     .

3.      .

  swap(i, ch)          -


void swap(char, char);

   .  10.4,  ,  . 289 ( 
sha.pe2.cpp).

. 14.3. 

    .  ,  
  ,      -
     .  , 
  ,     :

template <class T>

class matrix {

public:

friend void foo_bar();             //
friend vect<T> product(vect<T> v); //

};

. 14.4.  

   ,     :

template <class T>
class foo {
public:

static int count;

};

foo<int>    a, b;

foo<double> c;