3 ms·
It would have to be void drop(std::unique_ptr<T> x) {} Or, you know, just call someX.reset(); or do someX = nullptr;. The drop call would be way noisier: drop
by MauranKilom 7y ago
It would have to be
void drop(std::unique_ptr<T> x) {}
Or, you know, just call someX.reset(); or do someX = nullptr;. The drop call would be way noisier: drop(std::move(someX));