| 257 | typename Iter2, |
| 258 | typename Sentinel2> |
| 259 | bool equal(Iter1 first1, Sentinel1 last1, Iter2 first2, Sentinel2 last2) |
| 260 | { |
| 261 | for (; first1 != last1 && first2 != last2; ++first1, ++first2) { |
| 262 | if (*first1 != *first2) |
| 263 | return false; |
| 264 | } |
| 265 | return first1 == last1 && first2 == last2; |
| 266 | } |
| 267 | |
| 268 | /** Sentinel-friendly version of `std::mismatch()`. */ |
| 269 | template< |
no outgoing calls
no test coverage detected