3 ms·
Does `unique_ptr` incur a run-time peanalty for those checks?
by bjz_ 13y ago
Does `unique_ptr` incur a run-time peanalty for those checks?
- pbsd 13y agoFor all intents and purposes no. unique_ptr is nothing more than a pointer container that disables copying but allows moving. Therefore only one unique_ptr should be owning a pointer at any given time (unless, like everything in C++, you go around it).