cppannotations/yo/generic/partialsum.yo
Frank B. Brokken c6f853a3c5 WIP
git-svn-id: https://cppannotations.svn.sourceforge.net/svnroot/cppannotations/trunk@368 f6dd340e-d3f9-0310-b409-bdd246841980
2009-12-31 15:03:05 +00:00

28 lines
1.2 KiB
Text

hi(partial_sum)
itemization(
it() Header file: tt(<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(generic/examples/partialsum.cc)
)