competitive-cpp

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub fiore57/competitive-cpp

:warning: others/unique.cpp

Back to top page

Code

template <typename Container>
inline void UNIQUE(Container &&c) {
    c.erase(std::unique(begin(c), end(c)), end(c));
}

#line 1 "others/unique.cpp"
template <typename Container>
inline void UNIQUE(Container &&c) {
    c.erase(std::unique(begin(c), end(c)), end(c));
}

Back to top page