You are viewing a single comment's thread. Return to all comments →
i searched and find out we can write the erasing of multiple character using this statement as well
auto last = std::unique(v.begin(), v.end()); // v now holds {1 2 3 4 5 6 7 x x x x x x}, where 'x' is indeterminate v.erase(last, v.end());
but i am not understanding what does unique() returns any help will be highly appreciated. plz help me out.
Pangrams
You are viewing a single comment's thread. Return to all comments →
i searched and find out we can write the erasing of multiple character using this statement as well
but i am not understanding what does unique() returns any help will be highly appreciated. plz help me out.