I am totally new to reference_wrapper, so I need a very simple example to understand, please.
I declare two vectors:
std::vector<int> vec;
std::vector<std::reference_wrapper<int>> vec_r;
I fill vec with some values, then I want vec_r to store references to each element of vec, and I want to assign values to vec_r in order to modify the values stored in vec. What should I do?