pop element from set c++ code example
Example 1: C++ remove element from set
std::set<int> s {1,2,3};
s.erase(2);
Example 2: c++ list pop back
void pop_back();
// desc: remove last element. complexity: constant
std::set<int> s {1,2,3};
s.erase(2);
void pop_back();
// desc: remove last element. complexity: constant