| 2596 | |
| 2597 | template <typename Vec> |
| 2598 | std::size_t circular_distance(typename Vec::const_iterator first, |
| 2599 | typename Vec::const_iterator last, |
| 2600 | const Vec& vec) { |
| 2601 | if (first <= last) { |
| 2602 | return static_cast<std::size_t>(last - first); |
| 2603 | } |
| 2604 | return static_cast<std::size_t>(vec.end() - first) + static_cast<std::size_t>(last - vec.begin()); |
| 2605 | } |
| 2606 | |
| 2607 | template <typename Vec, typename Pred> |
| 2608 | std::pair<typename Vec::const_iterator, |
no test coverage detected