1.can std::move move a built-in type
int a = 10;
int b = std::move(a);
will a be a invalid value?
- can std::move move a pointer
int *a = new int[10];
int *b = std::move(a);
will a become a invalid pointer or nullptr?
- can std::move move an c array
int a[10];
int b[10];
b = std::move(a);
will a become an invalid array?
Aucun commentaire:
Enregistrer un commentaire