Foldable instance for std::set.