Watching Stephan T. Lavavej: Core C++ #1, and noticed that he is using begin(collection)
and not collection.begin()
.
What are the advantages ?
Watching Stephan T. Lavavej: Core C++ #1, and noticed that he is using begin(collection)
and not collection.begin()
.
What are the advantages ?
The first advantage that springs to mind is that std::begin(collection)
works with plain old arrays.