Home All Groups Group Topic Archive Search About

What is the collection class correspondent to std::set?

Author
22 Sep 2006 5:37 AM
Hyun-jik Bae
What is the collection class correspondent to std::set? I know Dictionary<>
roles as std::map...

Please reply. Thanks in advance.

Hyun-jik Bae

Author
22 Sep 2006 6:08 AM
Jon Skeet [C# MVP]
Hyun-jik Bae <imays_NOSPAM_@paran.com> wrote:
> What is the collection class correspondent to std::set? I know Dictionary<>
> roles as std::map...

There isn't one, unfortunately. You can use a dictionary which maps
everything to the same value (or to itself), however.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet   Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
Author
22 Sep 2006 2:52 PM
Carl Daniel [VC++ MVP]
Hyun-jik Bae wrote:
> What is the collection class correspondent to std::set? I know
> Dictionary<> roles as std::map...

As Jon already replied, there isn't one in the framework.  There is one in
the PowerCollections [1] library though.  There's also one in the C5 [2]
library.

[1]
http://www.gotdotnet.com/content/featuredsite/powercollections/default.aspx
[2] http://www.itu.dk/research/c5/

-cd

AddThis Social Bookmark Button