| 201 | |
| 202 | template <class C, class P> |
| 203 | constexpr size_t FindIndexIf(C&& c, P p) { |
| 204 | using std::begin; |
| 205 | using std::end; |
| 206 | auto it = FindIf(begin(c), end(c), p); |
| 207 | return it == end(c) ? NPOS : (it - begin(c)); |
| 208 | } |
| 209 | |
| 210 | // EqualToOneOf(x, "apple", "orange") means (x == "apple" || x == "orange") |
| 211 | template <typename T, typename... Other> |
no test coverage detected