Roadmap Start learning
QD03IntermediateQuant DeveloperMedium
C++ Fundamentals
Pointers, references, memory, the STL, RAII, templates and object-oriented design in C++.
1.7 h of lessons~25 min of practice across 1 problems
Prerequisites not done
Lessons0 / 6 lessons
Mastery · target 80%0 / 1 solved
Completing the lessons finishes the module. Mastery also needs 80% of its problems solved.
What you will be able to do
- Explain the difference between pointers, references and values and when copies happen
- Manage resources with RAII and constructors and destructors
- Choose the right STL container and know its complexity guarantees
- Write simple function and class templates
- Use inheritance and virtual functions, and know their cost
Before you start
Prerequisites: this module uses their material directly.
Lessons
1.Values, Pointers and ReferencesWhen C++ copies and when it aliases, how to choose between pass-by-value, reference and pointer, what const applies to, and how references and pointers dangle.16m2.Memory and Object LifetimeStack versus heap, the four storage durations, the exact order of construction and destruction, and the new/delete mistakes that produce undefined behaviour.17m3.RAIITie every resource to an object's lifetime: constructors acquire, destructors release. The rules of zero, three and five, exception-safety guarantees, and lock_guard and file handles as examples.17m4.STL Containers and AlgorithmsThe complexity of each standard container, which operations invalidate iterators and references, the core algorithms (sort, lower_bound, accumulate, erase-remove), and how to choose containers for an order book.18m5.TemplatesFunction and class templates, how template arguments are deduced, full and partial specialisation, why templates live in headers, and constraining templates with C++20 concepts.16m6.Classes and PolymorphismEncapsulation and invariants, inheritance, virtual functions and how vtables implement them, virtual destructors, object slicing, and when to replace virtual dispatch with templates or std::variant.18m
Practice problems (1)
Where this module fits
- Quant Developer: Required; optional for Python Research Engineering