| 56 | sentinel. */ |
| 57 | template<typename BidiIter, typename Sentinel, typename T> |
| 58 | BidiIter find(BidiIter first, Sentinel last, T const & x) |
| 59 | { |
| 60 | while (first != last) { |
| 61 | if (*first == x) |
| 62 | return first; |
| 63 | ++first; |
| 64 | } |
| 65 | return first; |
| 66 | } |
| 67 | |
| 68 | /** A range-friendly compliment to `std::find()`; returns an iterator to |
| 69 | the first element not equal to `x`. */ |
no outgoing calls
no test coverage detected