G
Gernot Frisch
er... I need a class that keeps the order of the elements, but does
not allow duplicates to be inserted.
not allow duplicates to be inserted.
Gernot said:er... I need a class that keeps the order of the elements, but does
not allow duplicates to be inserted.
Gernot Frisch said:er... I need a class that keeps the order of the elements, but does not
allow duplicates to be inserted.
Mike Wahler said:That's what 'std::set' does ('std::multiset' allows
duplicates). BTW tyur question does not correspond to your
subject line: "non-sorting std::set".
Gernot Frisch said:Er... I thought std::set (and atd::map) will sort the data,
so finding if the item already is in the list works fater.
Also, what would you be able to provide a "sort struct" as 3rd constructor
parameter for?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.