Answers for "how to remove the last element of the 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 remove the last element of the set in c++"

Browse Popular Code Answers by Language