3 ms·
> Can you return `UniquePtr` from a function? Yes: you can return structures by value in C (and also pass them by value). > Can you store a copy of `SharedPtr
by cryptonector 11mo ago
> Can you return `UniquePtr` from a function?
Yes: you can return structures by value in C (and also pass them by value).
> Can you store a copy of `SharedPtr` somewhere without accidentally forgetting to increment the refcount?
No, this you can't do.