Answers for "how to get the first element of a map in c++"

C++
0

how to get the first element of a map in c++

your_map.begin()->first // key
your_map.begin()->second // value
Posted by: Guest on February-22-2022

Code answers related to "how to get the first element of a map in c++"

Browse Popular Code Answers by Language