#include <algorithm>
#include <functional>
#include <iterator>
#include <vector>
#include <iostream>
#include <set>
using namespace std;
int main(int argc, char** argv)
{
vector<int> vectorOne;
set<int> setOne;
vectorOne.push_back(1);
vectorOne.push_back(2);
vectorOne.push_back(3);
vectorOne.push_back(4);
insert_iterator<set<int> > inserter(setOne, setOne.begin());
remove_copy_if(vectorOne.begin(), vectorOne.end(), inserter,bind2nd(equal_to<int>(), 100));
copy(setOne.begin(), setOne.end(), ostream_iterator<int>(cout, " "));
cout << endl;
return (0);
}