@@ -16,42 +16,128 @@ Example
16
16
std::end(Items2));
17
17
18
18
19
- transforms to:
19
+ Transforms to:
20
20
21
21
.. code-block :: c++
22
22
23
23
auto Iter1 = boost::range: :find(Items, 0);
24
24
auto AreSame = boost::range: :equal(Items1, Items2);
25
25
26
+ Supported algorithms
27
+ --------------------
28
+
26
29
Calls to the following std library algorithms are checked:
27
- ``includes ``,``set_union``,``set_intersection``,``set_difference``,
28
- ``set_symmetric_difference ``,``unique``,``lower_bound``,``stable_sort``,
29
- ``equal_range ``,``remove_if``,``sort``,``random_shuffle``,``remove_copy``,
30
- ``stable_partition ``,``remove_copy_if``,``count``,``copy_backward``,
31
- ``reverse_copy ``,``adjacent_find``,``remove``,``upper_bound``,``binary_search``,
32
- ``replace_copy_if ``,``for_each``,``generate``,``count_if``,``min_element``,
33
- ``reverse ``,``replace_copy``,``fill``,``unique_copy``,``transform``,``copy``,
34
- ``replace ``,``find``,``replace_if``,``find_if``,``partition``,``max_element``,
35
- ``find_end ``,``merge``,``partial_sort_copy``,``find_first_of``,``search``,
36
- ``lexicographical_compare ``,``equal``,``mismatch``,``next_permutation``,
37
- ``prev_permutation ``,``push_heap``,``pop_heap``,``make_heap``,``sort_heap``,
38
- ``copy_if ``,``is_permutation``,``is_partitioned``,``find_if_not``,
39
- ``partition_copy ``,``any_of``,``iota``,``all_of``,``partition_point``,
40
- ``is_sorted ``,``none_of``,``is_sorted_until``,``reduce``,``accumulate``,
41
- ``parital_sum ``,``adjacent_difference``.
30
+
31
+ ``std::accumulate ``,
32
+ ``std::adjacent_difference ``,
33
+ ``std::adjacent_find ``,
34
+ ``std::all_of ``,
35
+ ``std::any_of ``,
36
+ ``std::binary_search ``,
37
+ ``std::copy_backward ``,
38
+ ``std::copy_if ``,
39
+ ``std::copy ``,
40
+ ``std::count_if ``,
41
+ ``std::count ``,
42
+ ``std::equal_range ``,
43
+ ``std::equal ``,
44
+ ``std::fill ``,
45
+ ``std::find_end ``,
46
+ ``std::find_first_of ``,
47
+ ``std::find_if_not ``,
48
+ ``std::find_if ``,
49
+ ``std::find ``,
50
+ ``std::for_each ``,
51
+ ``std::generate ``,
52
+ ``std::includes ``,
53
+ ``std::iota ``,
54
+ ``std::is_partitioned ``,
55
+ ``std::is_permutation ``,
56
+ ``std::is_sorted_until ``,
57
+ ``std::is_sorted ``,
58
+ ``std::lexicographical_compare ``,
59
+ ``std::lower_bound ``,
60
+ ``std::make_heap ``,
61
+ ``std::max_element ``,
62
+ ``std::merge ``,
63
+ ``std::min_element ``,
64
+ ``std::mismatch ``,
65
+ ``std::next_permutation ``,
66
+ ``std::none_of ``,
67
+ ``std::parital_sum ``,
68
+ ``std::partial_sort_copy ``,
69
+ ``std::partition_copy ``,
70
+ ``std::partition_point ``,
71
+ ``std::partition ``,
72
+ ``std::pop_heap ``,
73
+ ``std::prev_permutation ``,
74
+ ``std::push_heap ``,
75
+ ``std::random_shuffle ``,
76
+ ``std::reduce ``,
77
+ ``std::remove_copy_if ``,
78
+ ``std::remove_copy ``,
79
+ ``std::remove_if ``,
80
+ ``std::remove ``,
81
+ ``std::replace_copy_if ``,
82
+ ``std::replace_copy ``,
83
+ ``std::replace_if ``,
84
+ ``std::replace ``,
85
+ ``std::reverse_copy ``,
86
+ ``std::reverse ``,
87
+ ``std::search ``,
88
+ ``std::set_difference ``,
89
+ ``std::set_intersection ``,
90
+ ``std::set_symmetric_difference ``,
91
+ ``std::set_union ``,
92
+ ``std::sort_heap ``,
93
+ ``std::sort ``,
94
+ ``std::stable_partition ``,
95
+ ``std::stable_sort ``,
96
+ ``std::transform ``,
97
+ ``std::unique_copy ``,
98
+ ``std::unique ``,
99
+ ``std::upper_bound ``.
42
100
43
101
The check will also look for the following functions from the
44
102
``boost::algorithm `` namespace:
45
- ``reduce ``,``find_backward``,``find_not_backward``,``find_if_backward``,
46
- ``find_if_not_backward ``,``hex``,``hex_lower``,``unhex``,
47
- ``is_partitioned_until ``,``is_palindrome``,``copy_if``,``copy_while``,
48
- ``copy_until ``,``copy_if_while``,``copy_if_until``,``is_permutation``,
49
- ``is_partitioned ``,``one_of``,``one_of_equal``,``find_if_not``,
50
- ``partition_copy ``,``any_of``,``any_of_equal``,``iota``,``all_of``,
51
- ``all_of_equal ``,``partition_point``,``is_sorted_until``,``is_sorted``,
52
- ``is_increasing ``,``is_decreasing``,``is_strictly_increasing``,
53
- ``is_strictly_decreasing ``,``none_of``,``none_of_equal``,``clamp_range``,
54
- ``apply_permutation ``,``apply_reverse_permutation``.
103
+
104
+ ``all_of_equal ``,
105
+ ``any_of_equal ``,
106
+ ``any_of ``,
107
+ ``apply_permutation ``,
108
+ ``apply_reverse_permutation ``,
109
+ ``clamp_range ``,
110
+ ``copy_if_until ``,
111
+ ``copy_if_while ``,
112
+ ``copy_if ``,
113
+ ``copy_until ``,
114
+ ``copy_while ``,
115
+ ``find_backward ``,
116
+ ``find_if_backward ``,
117
+ ``find_if_not_backward ``,
118
+ ``find_if_not ``,
119
+ ``find_not_backward ``,
120
+ ``hex_lower ``,
121
+ ``hex ``,
122
+ ``iota ``, ``all_of ``,
123
+ ``is_decreasing ``,
124
+ ``is_increasing ``,
125
+ ``is_palindrome ``,
126
+ ``is_partitioned_until ``,
127
+ ``is_partitioned ``,
128
+ ``is_permutation ``,
129
+ ``is_sorted_until ``,
130
+ ``is_sorted ``,
131
+ ``is_strictly_decreasing ``,
132
+ ``is_strictly_increasing ``,
133
+ ``none_of_equal ``,
134
+ ``none_of ``,
135
+ ``one_of_equal ``,
136
+ ``one_of ``,
137
+ ``partition_copy ``,
138
+ ``partition_point ``,
139
+ ``reduce ``,
140
+ ``unhex ``.
55
141
56
142
Reverse Iteration
57
143
-----------------
@@ -64,7 +150,7 @@ fixed using the ``boost::adaptors::reverse`` adaptor.
64
150
auto AreSame = std::equal(Items1.rbegin(), Items1.rend(),
65
151
std::crbegin(Items2), std::crend(Items2));
66
152
67
- transformst to:
153
+ Transforms to:
68
154
69
155
.. code-block :: c++
70
156
0 commit comments