lundi 3 juillet 2017

universal reference with containers

It's possible that give std::vector<T> e.g to function by universal reference? I know that

void f(const std::vector<T>&&) // is rvalue

void f(const std::vector<T>&) // is lvalue

Aucun commentaire:

Enregistrer un commentaire