3 ms·
Nowadays, you can do: auto sh_ptr = make_shared(....); // Since C++11 or auto uniq_ptr = make_unique(....); // Since C++14 It saves you from having
by radupopescu 10y ago
Nowadays, you can do:
auto sh_ptr = make_shared(....); // Since C++11
or
auto uniq_ptr = make_unique(....); // Since C++14
It saves you from having to explicitly name the type parameter and you just need to pass in the parameters of the constructor. It's not as terse as & or *, but it's not that bad.