2 ms·
AFAICT, Box has exactly the same semantics as C++‘s unique_ptr.
by umanwizard 6y ago
AFAICT, Box has exactly the same semantics as C++‘s unique_ptr.
- temac 6y agoWhere it can have the same semantics, yes. But if you look at the details, not exactly. For example Box is not nullable, but a not-nullable C++ equivalent is hard to do given the rest of the language.
- umanwizard 6y agoGood point on the nullability; yes, that is indeed different from std::unique_ptr.