nth element of the set in C++

 auto it = st.begin();

 advance(it, 2);

 int value = *it;

 cout<< value;

Comments

Popular posts from this blog