Comment Comment by mhh__ https://gcc.godbolt.org/z/TMYso5If you pass a unique_ptr it has to have redirection through a pointer, so it isn't quite zero cost.However, since the entire point of using a smart pointer is to control the ownership I'm not that bothered. parent mhh__ 6 years ago
If you pass a unique_ptr it has to have redirection through a pointer, so it isn't quite zero cost.
However, since the entire point of using a smart pointer is to control the ownership I'm not that bothered.