| 4 | #include <algorithm> |
| 5 | |
| 6 | int main() |
| 7 | { |
| 8 | std::vector<int> v = { 3, 1, 4 }; |
| 9 | if (std::find(std::begin(v), std::end(v), 5) != std::end(v)) { |
| 10 | std::cout << "found a 5 in vector v!\n"; |
| 11 | } |
| 12 | |
| 13 | int a[] = { 5, 10, 15 }; |
| 14 | if (std::find(std::begin(a), std::end(a), 5) != std::end(a)) { |
| 15 | std::cout << "found a 5 in array a!\n"; |
| 16 | } |
| 17 | } |
nothing calls this directly
no outgoing calls
no test coverage detected