3 ms·
> Think about explaining this to a new C++ developer. How's this: The code allocates and initializes a new Foo instance with args. By using make_unique you gu
by criddell 5y ago
> Think about explaining this to a new C++ developer.
How's this:
The code allocates and initializes a new Foo instance with args. By using make_unique you guarantee that the destructor is called when foo goes out of scope for any reason.