unique_copy不是拷贝不重复的元素吗
#include<iostream>
#include<list>
#include<string>
#include<algorithm>
using namespace std;
int main()
{
list<string> a = { "abc","kjdfs","abc","kdf","kjdfs" };
list<string> b;
unique_copy(a.begin(), a.end(), back_inserter(b));
for (auto k : b)
cout << k << ends;
system("pause");
return 0;
}
为什么全拷贝进去了