mattingly890's suggestion worked for me, this is just a follow up to give an example of how I used the set, as a reference for others. Below is some sample code on how I inserted into a set and tested to see if the value was in the set. Be sure to have #include <set>
at the top.
// Test std set
std::set<int> myset;
std::set<int>::iterator it;
myset.insert(10);
myset.insert(20);
myset.insert(30);
it = myset.find(10);
boolean found = it!=myset.end();
if(found)
MessageDlg("Found 10", mtInformation, TMsgDlgButtons() << mbOK, 0);
it = myset.find(15);
found = it!=myset.end();
if(found)
MessageDlg("Found 15", mtInformation, TMsgDlgButtons() << mbOK, 0);
it = myset.find(20);
found = it!=myset.end();
if(found)
MessageDlg("Found 20", mtInformation, TMsgDlgButtons() << mbOK, 0);
References: