This change makes it easier to migrate existing code that uses std::set (which support equality comparison) to SmallPtrSet.
NIT: Can this be const?
Can you add a unit test for testing the inequality of different-sized sets?
Can you use a smaller buffer and initialize it?
Addressed all comments.
Thanks for addressing the comments, LGTM.