bkramer added a comment. I personally dislike bind. I thought there was a a way to use std::equal_to without manually binding, but apparently there isn't, so adding is_contained is fine with me. Preferably with std::find as it avoids a confusing bind. http://reviews.llvm.org/D16053