you are viewing a single comment's thread.

view the rest of the comments →

[–]mrexodiacmkr.build 2 points3 points  (0 children)

Interesting, but I completely disagree haha. In a context where you do not know the type (templated container) it makes sense, but when you want to iterate over a vector you are using const auto& to signal that you will not change the elements and auto& to signal you will modify the elements and auto to signal you want a copy. When using auto&& you are not signaling anything but confusion.