Quantcast
Channel: Simplify C++!
Viewing all articles
Browse latest Browse all 163

shared_ptr Versus unique_ptr in Factory Functions

$
0
0
When it comes to factory functions there is often dispute on which kind of smart pointers to return. As it turns out, the choice depends on the circumstances, so here's a list of pros and cons.

Viewing all articles
Browse latest Browse all 163

Trending Articles