File: replaceif.yo

package info (click to toggle)
c%2B%2B-annotations 12.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 13,044 kB
  • sloc: cpp: 24,337; makefile: 1,517; ansic: 165; sh: 121; perl: 90
file content (16 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
    hi(replace_if)
    itemization(
        it() Header file: tt(<algorithm>)
        it() Function prototype:
        itemization(
            itt(ForwardIterator replace_if(ForwardIterator first,
ForwardIterator last, UnaryPredicate pred, Type const &value);)
        )
        it() Description:
        itemization(
            it() The elements in the range pointed to by rangett(first, last)
for which the unary predicate tt(pred) evaluates as tt(true)
are replaced by tt(value).
        )
        tt() Example:verbinclude(-a examples/replaceif.cc)
    )