| 129 | // FindPtr - return NULL if not found. Works for arrays, containers, iterators |
| 130 | template <class I, class T> |
| 131 | constexpr auto FindPtr(I f, I l, const T& v) -> decltype(&*f) { |
| 132 | I found = Find(f, l, v); |
| 133 | return (found != l) ? &*found : nullptr; |
| 134 | } |
| 135 | |
| 136 | template <class C, class T> |
| 137 | constexpr auto FindPtr(C&& c, const T& v) { |