Skip to content

Latest commit

 

History

History

README.md

CPP5 - Modern C++ and advanced topics

ruleof5.cpp

Video *Demonstrates in which situations the constructor, destructor, copy assignment operator, move constructor, and move assignment operator methods get called."

The purpose of this video is to demonstrate when the methods get called, not how to write the methods. Note that in practice you would only want to write these methods if necessary (Rule of 5). The class we start with technically doesn't need any of these methods (Rule of Zero).

smartptr1.cpp

Introduction to smart pointers in C++ - declaring and working with shared_ptr & unique_ptr

smartptr2.cpp

Demonstration of unique_ptr to an object with a destructor

exceptions.cpp

Video Example of C++ exceptions

constintptr.cpp

Video Demonstration of allocating constant pointers in differnt ways