| 2391 | namespace Vector { |
| 2392 | namespace Detail { |
| 2393 | template <typename InputIterator, typename T> size_t count(InputIterator first, InputIterator last, T const &item) { |
| 2394 | size_t cnt = 0; |
| 2395 | for (; first != last; ++first) { |
| 2396 | if (*first == item) { |
| 2397 | ++cnt; |
| 2398 | } |
| 2399 | } |
| 2400 | return cnt; |
| 2401 | } |
| 2402 | template <typename InputIterator, typename T> bool contains(InputIterator first, InputIterator last, T const &item) { |
| 2403 | for (; first != last; ++first) { |
| 2404 | if (*first == item) { |