File: adjacentfind.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 (23 lines) | stat: -rw-r--r-- 940 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
    hi(adjacent_find)
    itemization(
        it() Header file: tt(<algorithm>)
        it() Function prototypes:
        itemization(
            itt(ForwardIterator adjacent_find([ExecPol,] 
ForwardIterator first, ForwardIterator last);)
            itt(OutputIterator adjacent_find([ExecPol,] ForwardIterator first,
ForwardIterator last, Predicate pred);)
        )
        it() Description:
        itemization(
            it() The first prototype: the iterator pointing to the first
element of the first pair of two adjacent equal elements is returned. If no
such element exists, tt(last) is returned.
            it() The second prototype: the iterator pointing to the first
element of the first pair of two adjacent elements for which the binary
predicate tt(pred) returns tt(true) is returned. If no such element exists,
tt(last) is returned.
        )
        it() Example:
        verbinclude(-a examples/adjacentfind.cc)
    )