|
|
|
|
|
by maxxxxx
2687 days ago
|
|
Not necessarily. The types may just have very long names. In C++ for iterating through STL container auto is a godsend. The types are very straightforward and easy to reason about but just long. for (auto it = s.begin(); it != s.end(); it++) { is much easier to write than for (vector<int>::iterator it = s.begin(); it!=s.end(); it++) { |
|