Not entirely sure as auto in some instances is tricky. I believe in your example that new_value will the type int.
It will be int&, I think: en.cppreference.com/w/cpp/language...
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.