The C++ standard does not require `true` to evaluate to `1`. To be safe, write `return find(value) != end() ? 1 : 0;`