4 ms·
If you're using smart pointers enough to be bothered by verbosity I think it's somewhat likely you're overusing heap allocation and / or not making enough use o
by mattnewport 8y ago
If you're using smart pointers enough to be bothered by verbosity I think it's somewhat likely you're overusing heap allocation and / or not making enough use of standard containers. Explicitly dealing with heap allocation via smart pointers should be a tool you only reach for occasionally in most code. Heap memory management should usually be wrapped in another library class, either a standard container or a custom type and most non library code should generally be using stack allocation.