.4.  ______________________________________________435

 template<class Inputlter, class T, class Bin0p>

 accumulate(Inputlter b, Inputlter e,  t, BinOP bop);

  ,     t.   
      b  e,   -
     bop.

         .

STL:   

inerproduct (, 1, 2 , t)	   
	,   bl  b2,
	     ,  
inerproduct	     
(, el, b2, t,bopl, bop2)	,  bopi
	 ,  bop2  
partialsum(bl, el, b2)	 ,
	  b2,  
	    
	1 1
partialsum(bl, el, b2, bop)	 ,   ,  
	  bop
adjacentdi?ference	 ,
(bl, el,b2)	  b2,  
	    
	1 1
adj acentdi f ference	 ,   ,  
(bl, el, b2, bop)	  bop

.4. 

    STL  -. ,
       
+  *,    ,       
   .  -   
 function,      . -  
,    operator ().   '  -
 ,    .    .  9.11,
,  . 273 (  stl_func.cpp).
   -.

 -

  

  

  

' , ,        (inline),    , 
         (built-in).  . .