|
|
std::reference_wrapper is a class template that wraps a reference in a copyable, assignable object. It is frequently used as a mechanism to store references inside standard containers (like std::vector) which cannot normally hold references. http://en.cppreference.com/w/cpp/utility/functional/reference_wrapper |
reference::wrapper
n it's workin' great, I din't know vectors couldn't work with references, thank you @JLBorges