Answers for "what does set insert return c++"

C++
1

c++ return value of set insert

set<int> st;
auto p = st.insert(2);
// p.first - iterator to the inserted element
// p.second - true if 2 don't exists in the set otherwise false
Posted by: Guest on March-13-2021

Code answers related to "what does set insert return c++"

Browse Popular Code Answers by Language