General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
ThePrimeTime
comments
Comments by "" (@mina86) on "ThePrimeTime" channel.
Previous
1
Next
...
All
std::unique_ptr does not have runtime overhead. std::unique_ptr is essentially Rust’s Box. std::shared_ptr is reference counted like Rust’s Arc. Comparing apples to apples, C++ is essentially the same to Rust in this regard.
10
@khatdubell , if the custom deleter has no state than it’s also zero overhead.
6
@khatdubell , unique_ptr<T> with non-default deleter is analogous to Box<Wrapped<T>> where Wrapped has custom Drop.
2
Previous
1
Next
...
All