cppannotations/yo/stl/partialsum.yo
fbbrokken 6881bc3814 The trunk directory contains the latest version (6.4.0c) of the C++
Annotations. 

The branches and tags directory are empty, since I couldn't
svnadmin import a repostitory dump. Many earlier versions exist, though, and
if you want the full archive, just let me know and I'll send you the svnadmin
dump of my full C++ Annotations archive.

Frank B. Brokken <f.b.brokken@rug.nl>



git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@3 f6dd340e-d3f9-0310-b409-bdd246841980
2006-09-04 08:26:34 +00:00

29 lines
1.3 KiB
Text

hi(partial_sum())
itemization(
it() Header file:
centt(#include <numeric>)
it() Function prototypes:
itemization(
itt(OutputIterator partial_sum+OPENPARInputIterator first,
InputIterator last,)linebreak()tt(OutputIterator result+CLOSEPAR;)
itt(OutputIterator partial_sum+OPENPARInputIterator first,
InputIterator last,)linebreak()tt(OutputIterator result, BinaryOperation
op+CLOSEPAR;)
)
it() Description:
itemization(
it() The first prototype: each element in the range
rangett(result, <returned OutputIterator>) receives a value which is obtained
by adding the elements in the corresponding range of the range rangett(first,
last). The first element in the resulting range will be equal to the element
pointed to by tt(first).
it() The second prototype: the value of each element in the range
rangett(result, <returned OutputIterator>) is obtained by applying the binary
operator tt(op) to the previous element in the resulting range and the
corresponding element in the range rangett(first, last). The first
element in the resulting range will be equal to the element pointed to by
tt(first).
)
it() Example:
verbinclude(stl/cc/partialsum.cc)
)