Pointers in C++ — From Raw Pointers to Smart Pointers (Complete Tutorial)
A unique_ptr is 8 bytes — exactly the same as a raw pointer. Pointers from declaration to ownership, with every claim compiled and measured.
A unique_ptr is 8 bytes — exactly the same as a raw pointer. Pointers from declaration to ownership, with every claim compiled and measured.
Fifteen characters cost nothing; sixteen cost a heap allocation. A measured guide to std::string, string_view, and where the copies come from.
One definition, three functions in the binary. A measured guide to templates, from deduction through concepts and the errors they produce.
C++ classes group data with the functions that operate on it. Learn constructors, access specifiers, RAII and more — every example compiled and tested.