#include <iostream>
#include <algorithm>
#include <array>
#include <vector>
#include <functional>
using namespace std;
int main(){
array<int,8> t1 = {13,11,7,5,5,17,19,23};
array<int,8>::iterator it;
//删除相同的元素,保留第一个,对于此数组,即删除第二个5
//it=unique(t1.begin(),t1.end());
//it=unique(t1.begin(),t1.end(),[](int i,int j){return i==j;});
for_each(t1.begin(),it,[](int i){cout<<i<<endl;});
return 0;
}