Skip to main content
added 1 characters in body
Source Link
Mark Rotteveel
  • 110.3k
  • 240
  • 160
  • 232

For remoovingremoving duplicates you can use std::unique here is the description of the function. It will return An iterator to the element that follows the last element not removed."An iterator to the element that follows the last element not removed". So you can resize your string using a.resize(i) where i is the return value of std::unique.

For remooving duplicates you can use std::unique here is the description of the function. It will return An iterator to the element that follows the last element not removed. So you can resize your string using a.resize(i) where i is the return value of std::unique.

For removing duplicates you can use std::unique here is the description of the function. It will return "An iterator to the element that follows the last element not removed". So you can resize your string using a.resize(i) where i is the return value of std::unique.

Source Link

For remooving duplicates you can use std::unique here is the description of the function. It will return An iterator to the element that follows the last element not removed. So you can resize your string using a.resize(i) where i is the return value of std::unique.