tmp/tmpc0wzhw55/{from.md → to.md}
RENAMED
|
@@ -2,14 +2,20 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class InputIterator, class T>
|
| 5 |
typename iterator_traits<InputIterator>::difference_type
|
| 6 |
count(InputIterator first, InputIterator last, const T& value);
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
template<class InputIterator, class Predicate>
|
| 9 |
typename iterator_traits<InputIterator>::difference_type
|
| 10 |
count_if(InputIterator first, InputIterator last, Predicate pred);
|
|
|
|
|
|
|
|
|
|
| 11 |
```
|
| 12 |
|
| 13 |
*Effects:* Returns the number of iterators `i` in the range \[`first`,
|
| 14 |
`last`) for which the following corresponding conditions hold:
|
| 15 |
`*i == value, pred(*i) != false`.
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
template<class InputIterator, class T>
|
| 5 |
typename iterator_traits<InputIterator>::difference_type
|
| 6 |
count(InputIterator first, InputIterator last, const T& value);
|
| 7 |
+
template<class ExecutionPolicy, class ForwardIterator, class T>
|
| 8 |
+
typename iterator_traits<ForwardIterator>::difference_type
|
| 9 |
+
count(ExecutionPolicy&& exec, ForwardIterator first, ForwardIterator last, const T& value);
|
| 10 |
|
| 11 |
template<class InputIterator, class Predicate>
|
| 12 |
typename iterator_traits<InputIterator>::difference_type
|
| 13 |
count_if(InputIterator first, InputIterator last, Predicate pred);
|
| 14 |
+
template<class ExecutionPolicy, class ForwardIterator, class Predicate>
|
| 15 |
+
typename iterator_traits<ForwardIterator>::difference_type
|
| 16 |
+
count_if(ExecutionPolicy&& exec, ForwardIterator first, ForwardIterator last, Predicate pred);
|
| 17 |
```
|
| 18 |
|
| 19 |
*Effects:* Returns the number of iterators `i` in the range \[`first`,
|
| 20 |
`last`) for which the following corresponding conditions hold:
|
| 21 |
`*i == value, pred(*i) != false`.
|