Day 6: Advanced and legacy features
Resources
Zoom meeting link for today's session is available in the Bookmarks on the course Slack channel.
To create the starter repository for today's session please click hereLink opens in a new window
Programme
Raw pointers & C-style arrays |
We examine the "legacy" features of raw pointers, C-style arrays and how to manually perform dynamic memory allocation. |
Exceptions |
We briefly examine how to handle error conditions using exceptions. |
Concurrent programming |
We look briefly at the features introduced in C++11 that allow a more portable way to write concurrent (or multi-threaded) code. |
Special member functions |
We give more detail on the special member functions (copy constructor, move constructor, copy assignment operator, move assignment operator, destructor), we also provide an introduction to the "move" operations introduced in C++11, and a short discussion of operator overloading. |
Containers overview |
We provide an overview of the various containers available in the Standard Library, including some ideas of when it is appropriate to use each one and how modern C++ allows more efficient use of them. |
Regular expressions andRandom number generation |
We take a very quick look at two more very useful features added in the C++11 standard. In particular, support for regular expressions and improved random number generation. |