4 ms·
unique_ptr is easy, no overhead, and its friend, make_unique(), allows for concise generation of the smart pointer. what's clunky about that? (of course, make_u
by hellofunk 11y ago
unique_ptr is easy, no overhead, and its friend, make_unique(), allows for concise generation of the smart pointer. what's clunky about that? (of course, make_unique didn't appear until C++14, so it was a bit more clunky before that).