vendredi 31 août 2018

What is the difference between "const auto" and "auto const" in range based for loop in C++?

In particular these two examples.

  1. for (const auto &ind : vec)
  2. for (auto const &ind :vec)

Aucun commentaire:

Enregistrer un commentaire