Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chinhodado committed Apr 11, 2014
1 parent 0339377 commit 88d1279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions from_goto_to_std-transform.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ vector<int> squareVec3(const vector<int>& v)
return result;
}
```
Here you can immediatly see that the algorithm iterates ofter the elements of `v` but you still have to read the whole line `for (auto it = begin(v); it != end(v); ++it)` until you know that every single element is used and not e.g. every second, since the increase could also be `it += 2` or something else instead of `++it`.
Here you can immediately see that the algorithm iterates ofter the elements of `v` but you still have to read the whole line `for (auto it = begin(v); it != end(v); ++it)` until you know that every single element is used and not e.g. every second, since the increase could also be `it += 2` or something else instead of `++it`.
## Range-based for loop
Expand Down Expand Up @@ -161,4 +161,4 @@ Sure, readability also has something to with taste or to be precise familiarity,
## Further readings
With [effective stl](http://www.amazon.com/dp/0201749629) Scott Meyers has written a very nice book covering this and more in depths.
Herb Sutter's [talk about lambdas](https://www.youtube.com/watch?v=rcgRY7sOA58) can also help to get more into this topic.
Also you can [discuss this article on reddit](http://www.reddit.com/r/programming/comments/22q18m/c_from_goto_to_stdtransform/).
Also you can [discuss this article on reddit](http://www.reddit.com/r/programming/comments/22q18m/c_from_goto_to_stdtransform/).

0 comments on commit 88d1279

Please sign in to comment.