C++C++11C++14C++17Code SnippetIntroduction to C++Language FeatureLearn C++

Learn To Use Powerful Modern Linked Lists In C++

Can I use linked lists with unique_ptr in a modern way? How can I use linked list with the class, struct combinations? How can I use smart pointer with linked lists? Let’s try to answer these questions. What does the smart pointer unique_ptr mean? std::unique_ptr is a smart pointer (Since C++11) that manages and owns another object with a pointer. When the unique_ptr goes out of scope…
Read more