File: ispermutation.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 (34 lines) | stat: -rw-r--r-- 1,545 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
34
    hi(is_permutation)
    itemization(
        it() Header file: tt(<algorithm>)
        it() Function prototypes:
        itemization(
            itt(bool is_permutation(ForwardIterator first1,
                ForwardIterator last1, ForwardIterator first2);)
            itt(bool is_permutation(ForwardIterator first1,
                ForwardIterator last1, ForwardIterator first2,
                ForwardIterator last2);)
            itt(bool is_permutation(ForwardIterator first1,
                ForwardIterator last1, ForwardIterator firs2,
                BinaryPred pred);)
            itt(bool is_permutation(ForwardIterator first1,
                ForwardIterator last1, ForwardIterator first2,
                ForwardIterator last2, BinaryPred pred);)
        )
        it() Description:
        itemization(
            it() The first prototype: returns tt(true) if the elements in the
iterator range rangett(first1, last1), are a permutation of the elements in
the identically sized range starting at tt(first2).
            it() The second prototype: like the first prototype but the ending
iterator of the second range is provided as the fourth argument.
            it() The third prototype: like the first prototype but using the
result of tt(pred) to determine whether two elements are equal.
            it() The fourth prototype: like the second prototype but using the
result of tt(pred) to determine whether two elements are equal.
        )
        it() Example:
        verbinclude(-a examples/ispermutation.cc)
    )