| 193 | |
| 194 | template <class C, class T> |
| 195 | constexpr size_t FindIndex(C&& c, const T& x) { |
| 196 | using std::begin; |
| 197 | using std::end; |
| 198 | auto it = Find(begin(c), end(c), x); |
| 199 | return it == end(c) ? NPOS : (it - begin(c)); |
| 200 | } |
| 201 | |
| 202 | template <class C, class P> |
| 203 | constexpr size_t FindIndexIf(C&& c, P p) { |