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 smallptrset
s?
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
Post a Comment