3 ms·Does const auto& work though?by klipt 10y agoDoes const auto& work though?gpderetta 10y agoI normally use for(auto&& x : ...) which works with those rare containers that have proxy references, while still allowing mutation.