#include"iostream"
#include"list"
#include"functional"
#include"cstdlib"
using namespace std;
int main()
{
int a[10]={1,2,3,1,5,8,6,4,5,1};
listiList(a,a+10);
list::iterator it;
for(it=iList.begin();it!=iList.end();++it)
cout<<*it<<' ';
cout<<endl;
iList.remove(1);
for(it=iList.begin();it!=iList.end();++it)
cout<<*it<<' ';
cout<<endl;
iList.remove_if(bind2nd(not_equal_to(),5));
for(it=iList.begin();it!=iList.end();++it)
cout<<*it<<' ';
cout<<endl;
system("pause");
return 0;
}