In 《c++ concurrency in action》page 167,
1)value=std::move(*head->data); // Data will be moved if T has move-constructor.
2)std::unique_ptr old_head=std::move(head); // now the data references to unspecified T ?
Aucun commentaire:
Enregistrer un commentaire