Modern C++ Essentials
Write fast, safe Modern C++ (C++17/20). Master references, std::vector, STL algorithms, RAII classes, smart pointers, and generic templates.
What you'll build & master
- ✓ Write clean Modern C++ using std::string, auto, and range-based for loops
- ✓ Avoid unnecessary copies with const references (const T&)
- ✓ Manipulate dynamic collections with std::vector, std::unordered_map, and STL algorithms
- ✓ Design RAII classes with constructors, member initializer lists, and destructors
- ✓ Manage heap ownership safely using std::unique_ptr and generic templates
Course Syllabus
Modern C++ Foundations
The Standard Library (STL)
- 19 min
std::vector, Maps & STL Algorithms
Replace manual C arrays with std::vector, range-based for loops, and expressive <algorithm> helpers.
- 28 min
unordered_map & Structured Bindings
Perform O(1) hash lookups with std::unordered_map and unpack key-value pairs cleanly with C++17 structured bindings.
- 38 min
Lambdas & STL Algorithm Pipelines
Write concise inline predicates with lambda capture lists and combine std::transform, std::accumulate, and std::ranges.
OOP & Resource Safety
- 19 min
Classes, Constructors & RAII
Encapsulate state with C++ classes, member initializer lists, and deterministic RAII resource cleanup.
- 29 min
Smart Pointers & Generic Templates
Eliminate manual new/delete with std::unique_ptr and write zero-cost generic functions with C++ templates.
- 39 min
Polymorphism, virtual & override
Build clean C++ interfaces with pure virtual methods (= 0), virtual destructors, and the override keyword.
Modern C++20 Features
- 19 min
Move Semantics & std::move
Transfer ownership of strings and vectors in O(1) without deep copying using std::move and rvalue references (T&&).
- 28 min
std::optional & std::string_view
Express nullable return values cleanly with std::optional and read strings with zero allocations using std::string_view.
- 38 min
Exceptions & Exception Safety
Throw standard exceptions cleanly, catch by const reference, and rely on RAII for automatic cleanup during stack unwinding.