I've got following code:
std::list some_data; ... std::list new_data = std::move(some_data); some_data.clear(); ...
The question is whether some_data.clear() is necessary? (for the record, some_data will be reused in the future)
some_data.clear()
some_data
Aucun commentaire:
Enregistrer un commentaire