4 ms·
Forgive my ignorance, but doesn't std::unique_ptr communicate the same restriction, and therefore enable the same optimisations?
by mhaymo 10y ago
Forgive my ignorance, but doesn't std::unique_ptr communicate the same restriction, and therefore enable the same optimisations?
- firethief 10y agounique_ptr has unique ownership; it's not an error to use other pointers to the same data (just a bad idea).