4 ms·
Sure, and that is a special case I was referring to. (Another one would be a class factory method returning a unique pointer to an interface.) In general, thou
by Koshkin 9y ago
Sure, and that is a special case I was referring to. (Another one would be a class factory method returning a unique pointer to an interface.)
In general, though, passing a unique_ptr around is a bit cumbersome as this requires calling std::move way too often.