Find a value among values like in Python: #include "my-algorithm.hpp" if (find(value).in(1, 2, 3, 4, 5, 6)) { doSmth(); }