Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Auto Type Deduction in C++ Range-Based For Loops. Parent comment
- if you put in an rvalue reference, it's like std::move
- if you put in anything else, it does nothing.
So my point about the article's formulation ("when you want to modify elements in the range in generic code") and its example remains.
There are no comments on this comment yet.
- if you put in an rvalue reference, it's like std::move
- if you put in anything else, it does nothing.
So my point about the article's formulation ("when you want to modify elements in the range in generic code") and its example remains.