| 2523 | namespace Detail { |
| 2524 | template <typename InputIterator, typename T> |
| 2525 | size_t count(InputIterator first, InputIterator last, T const& item) { |
| 2526 | size_t cnt = 0; |
| 2527 | for (; first != last; ++first) { |
| 2528 | if (*first == item) { |
| 2529 | ++cnt; |
| 2530 | } |
| 2531 | } |
| 2532 | return cnt; |
| 2533 | } |
| 2534 | template <typename InputIterator, typename T> |
| 2535 | bool contains(InputIterator first, InputIterator last, T const& item) { |
| 2536 | for (; first != last; ++first) { |
no outgoing calls