lundi 6 mars 2017

Alternate of ranged based for?

How d you write the alternate for "ranged based for" that is a part of c++11 in older versions of C++

for (boost::property_tree::ptree::iterator iter = root.begin() ; iter != root.end() ; iter++)
    {
        for (auto& array_element : iter->second)
        {
           //Some Lines
        }
   }

Aucun commentaire:

Enregistrer un commentaire