Answers for "unique stl cpp"

8

c++ std::unique

sort( vec.begin(), vec.end() );
vec.erase( unique( vec.begin(), vec.end() ), vec.end() );
Posted by: Guest on May-20-2020

Browse Popular Code Answers by Language