File: equalrange.yo

package info (click to toggle)
c%2B%2B-annotations 8.2.0-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 11,804 kB
  • ctags: 2,845
  • sloc: cpp: 15,418; makefile: 2,473; ansic: 165; perl: 90; sh: 29
file content (33 lines) | stat: -rw-r--r-- 1,665 bytes parent folder | download
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(equal_range)
    itemization(
        it() Header file: tt(<algorithm>)
        it() Function prototypes:
        itemization(
            itt(pair<ForwardIterator, ForwardIterator>
            equal_range+OPENPARForwardIterator )linebreak()
        tt(first, ForwardIterator last, Type const &value+CLOSEPAR;)
            itt(pair<ForwardIterator, ForwardIterator>
            equal_range+OPENPARForwardIterator)linebreak()
        tt(first, ForwardIterator last, Type const &value,
            Compare comp+CLOSEPAR;)
        )
        it() Description (see also identically named member functions of,
e.g., the tt(map) (section ref(MAP)) and tt(multimap) (section
ref(MULTIMAP))):
        itemization(
            it() The first prototype: starting from a sorted sequence (where
the tt(operator<) of the data type to which the iterators point was used to
sort the elements in the provided range), a pair of iterators is returned
representing the return value of, respectively, tt(lower_bound) (returning
the first element that is not smaller than the provided reference value, see
section ref(LOWERBOUND)) and tt(upper_bound)(returning the first element
beyond the provided reference value, see section ref(UPPERBOUND)).
            it() The second prototype: starting from a sorted sequence (where
the tt(comp) function object was used to sort the elements in the provided
range), a pair of iterators is returned representing the return values of,
respectively, the functions tt(lower_bound) (section ref(LOWERBOUND)) and
tt(upper_bound)(section ref(UPPERBOUND)).
        )
        it() Example:
        verbinclude(generic/examples/equalrange.cc)
    )