Discussion:
comparison operators for intset
David Hakim
2003-07-17 21:08:44 UTC
Permalink
I don't believe there are comparisons (apart from equality /
inequality) for sets defined in the STL. I should probably check on
this ... I took the set comparisons out of the iset interface and test
cases for this release though ... It probably wouldn't be a bad idea to
have an intermediate release following this one that adds more
overloaded ops to the utility classes

-Dave
What do the overloaded comparison operators (apart from eq and ne)
mean for Intset ? Were they just for testing ?
Yeah, I had not, how to say, a scientific approach to them... they use
iset_comp2 (defined in mx/codex/util/intset_op.c) to see which IntSet
contains more ints... ehm... Are there comparison operator for IntSets
in
STL? What do they do, in case?
Stefano
Stefano Corsi
2003-07-26 12:59:46 UTC
Permalink
Post by David Hakim
I don't believe there are comparisons (apart from equality /
inequality) for sets defined in the STL. I should probably check on
this ... I took the set comparisons out of the iset interface and test
cases for this release though ... It probably wouldn't be a bad idea to
have an intermediate release following this one that adds more
overloaded ops to the utility classes
Yes, probably iterators ++ and -- (for databases, arrays, hashes and so on).

Stefano

Loading...