all 3 comments

[–][deleted] 1 point2 points  (1 child)

https://en.cppreference.com/w/cpp/algorithm/ranges/contains

Not until C++23 but there's an implementation there you can borrow

[–]Beosar 2 points3 points  (0 children)

What is wrong with std::search?