#include #include #include int main(){ std::cout << std::endl; //std::vector myIntRefVector; int a= 0; int b= 0; int c= 0; std::vector< std::reference_wrapper > myIntRefVector= {std::ref(a),std::ref(b),std::ref(c)}; for (auto b: myIntRefVector ) std::cout << b << " "; std::cout << std::endl; b=2011; for (auto b: myIntRefVector ) std::cout << b << " "; std::cout << "\n\n"; }