| 180 | // FindIfPtr - return NULL if not found. Works for arrays, containers, iterators |
| 181 | template <class I, class P> |
| 182 | constexpr auto FindIfPtr(I f, I l, P pred) -> decltype(&*f) { |
| 183 | I found = FindIf(f, l, pred); |
| 184 | return (found != l) ? &*found : nullptr; |
| 185 | } |
| 186 | |
| 187 | template <class C, class P> |
| 188 | constexpr auto FindIfPtr(C&& c, P pred) { |
no test coverage detected