dimanche 18 août 2019

What's the difference between MoveInsertable and MoveConstructible?

Difference between MoveInsertable and CopyInsertable? suggests that a type T is MoveInsertable if the allocator can construct an object of type T from an rvalue of the same type. However, MoveConstructible also requires T to be constructible from an rvalue of the same type. Then, what's the difference between them?

Aucun commentaire:

Enregistrer un commentaire