lundi 29 juin 2020

What happens when std::move() is called without assignment [duplicate]

What happens when I just use std::move without any assignment?

std::string s = "Moving";
std::move(s);  //What happens on this line to s?
//is s still valid here?

Aucun commentaire:

Enregistrer un commentaire