#include #include #include using namespace std; int main() { set object; pair::iterator, bool> result = object.insert(set::value_type(4)); cout << "Element " << *result.first << " was " << (result.second ? "" : "not ") << "inserted\n"; result = object.insert(set::value_type(4)); cout << "Element " << *result.first << " was " << (result.second ? "" : "not ") << "inserted\n"; }