unique (STL/CLR)
移除重複的項目所指定的範圍中彼此相鄰。
template<class _FwdIt> inline
_FwdIt unique(_FwdIt _First, _FwdIt _Last);
template<class _FwdIt, class _Pr> inline
_FwdIt unique(_FwdIt _First, _FwdIt _Last, _Pr _Pred);
備註
這個函式行為和 STL 函式一樣unique。如需詳細資訊,請參閱 unique (<algorithm>)。
需求
標頭: < cliext/演算法 >
Namespace: cliext