>>88164153The fastest way is avoiding common pitfalls:
Use RAII following the rule of 0.
C++ references are aliases.
Learn about const correctness.
Learn about glvalues, prvalues, xvalues, rvalues, lvalues.
Write the "*" pointer and "&" reference declarators right next to the type, the multiplication "*" and bitwise-and "&" operators between spaces, the unary deference operator "*" and the unary address operator "&" close to the variable.
Use std::unique_ptr, and std::make_unique so you don't have to call new/delete manually.
Use std::shared_ptr and std::make_shared when you need to share objects among threads, and is not possible to have deterministic life times.
Do not use owning pointers, new/delete, or manual memory allocation until you learn the rest of the language, 99.99% of the time you will not need such a thing. If you have to deal with C libraries write a wrapper following the rule of 5, so you can use RAII + rule of 0 in the rest of the code.