What does `auto && e` do in range-based for-loops?
When and if you should use auto&& in for loops has been explained very nicely by Howard Hinnant here. This leaves the question what x in auto &&x = …expr… actually is. And it is handled as if there there were a function template definition template <class U> void f(U&& u); and the type of … Read more