|
Boost : |
From: Joel de Guzman (djowel_at_[hidden])
Date: 2002-08-27 18:11:20
----- Original Message -----
From: "spamjunk" <spamjunk_at_[hidden]>
> They aren't always known at compile-time. You can create sets dynamically
> at run-time, using the constructor. What SetOf allows you to do is, if all
> the elements are compile-time constants, create the entire set as a
> compile-time constant. You could use the same argument for SetOf, but it
> would still have to be "converted" to an actual set of bits before
> interacting with other sets, so you wouldn't actually be saving anything.
No, on the contrary, you can use expression templates to make static
sets interact with each other. I have an implementation that can
conceptually hold 256 elements, can do all the set operations (i.e
negation, union, intersection, difference and xor). I was hoping your
set would be like this.
--Joel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk