Answers for "To remove the last element in set we can use"

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 "To remove the last element in set we can use"

Browse Popular Code Answers by Language