j
k
j a
j l
Dave Harris wrote:
What's wrong with: for (auto i: vec) ?
What's wrong with:
for (auto i: vec)
?
Pretty much nothing unless auto is rejected, except the copy. for( auto i: v ) { i = 0; } for( auto& i: v ) is the typical foreach, unless v is vector<bool> or another proxied container.
Back to the thread
Back to the list