M
marcwentink
Could you please advise me what C++ STL container I could use that
would automaticly only store unique items. Hence prevents the insertion
of doubles.
It should behave like this, (I use 'vector' but I think this does not
behave this way)
vector<string> container;
container.push("1234");
container.push("2234");
container.push("3234");
container.push("4234");
container.push("1234");
Now the container should only contain, the four unique strings: "1234"
"2234" "3234" "4234" and no double item for "1234".
I am reading some stuff here and there, but I cannot find the answer to
this simple question....
would automaticly only store unique items. Hence prevents the insertion
of doubles.
It should behave like this, (I use 'vector' but I think this does not
behave this way)
vector<string> container;
container.push("1234");
container.push("2234");
container.push("3234");
container.push("4234");
container.push("1234");
Now the container should only contain, the four unique strings: "1234"
"2234" "3234" "4234" and no double item for "1234".
I am reading some stuff here and there, but I cannot find the answer to
this simple question....