Answers for "c++ iterator shorthand"

C++
0

c++ iterator shorthand

//v is some container
for (auto &i: v){
   // Do something with i
}
Posted by: Guest on March-02-2022

Browse Popular Code Answers by Language