File: partialsum.yo

package info (click to toggle)
c%2B%2B-annotations 13.02.02-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,576 kB
  • sloc: cpp: 25,297; makefile: 1,523; ansic: 165; sh: 126; perl: 90; fortran: 27
file content (33 lines) | stat: -rw-r--r-- 1,407 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
    hi(partial_sum) hi(inclusive_scan) hi(exclusive_scan)
    itemization(
        it() Header file: tt(<numeric>)
        it() Function prototypes:
        itemization(
            itt(OutputIterator partial_sum(InputIterator first,
InputIterator last, OutputIterator result);)
            itt(OutputIterator partial_sum(InputIterator first, InputIterator
last, OutputIterator result, BinaryOperation op);)
        )
        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).
        )
        See also ti(inclusive_scan) and ti(exclusive_scan), supporting
        execution policies:
            (url(cppreference)(https://en.cppreference.com)).
        it() Example:
        verbinclude(-a examples/partialsum.cc)
    )