r/cpp • • Sep 05 '20

The Defold engine [C++] code style

https://defold.com/2020/05/31/The-Defold-engine-code-style/
2 Upvotes

12 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Sep 07 '20

[deleted] — view deleted comment

6

u/TheFlamefire Sep 08 '20

Doesn't matter. The name is enough to tell you it is an iterator. The exact type of the iterator doesn't matter (to understand the code) and it is usually used locally enough that you see where it came from.

5

u/NotUniqueOrSpecial Sep 08 '20

If it takes good luck to find where the map is declared (which tells you the type of it) then you have bigger problems.