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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -