It's possible that give std::vector<T> e.g to function by universal reference? I know that
std::vector<T>
void f(const std::vector<T>&&) // is rvalue
void f(const std::vector<T>&) // is lvalue
Aucun commentaire:
Enregistrer un commentaire