Comapring two llvm:SmallPtrSet for equality -


i trying rewrite std::set usages llvm::smallptrset (fast set implementation based on small vector , iterating vector every operation). works, problem operator== - can compare 2 std::set objects , can't compare smallptrset object.

how can compare 2 smallptrsets?

smallptrset's methods count(), erase(), ... compare objects memory address, not via equality defined in overloaded == operator.

if need check equals instead of is same, suggest write small helper iterates on sets , checks equality constraints.


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -