Skip to content
Snippets Groups Projects

C++ vector array - remove duplicates

  • Clone with SSH
  • Clone with HTTPS
  • Embed
  • Share
    The snippet can be accessed without any authentication.
    Authored by Zandor Smith
    duplicates.cpp 85 B
    vectorArray.erase(unique(vectorArray.begin(), vectorArray.end()), vectorArray.end());
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment