Answers for "how to pop the last element of a set in c++"

C++
0

c++ erase last element of set

st.erase(*st.rbegin());
// or
st.erase(prev(st.end()));
Posted by: Guest on March-13-2021

Code answers related to "how to pop the last element of a set in c++"

Browse Popular Code Answers by Language