Roadmap Start learning
QD04AdvancedQuant DeveloperHard
Modern C++ and Performance
Move semantics, smart pointers, ownership, allocation and cache-friendly design in modern C++.
1.5 h of lessons~0 min of practice across 0 problems
Prerequisites not done
Lessons0 / 5 lessons
Mastery · target 80%0 / 0 solved
Completing the lessons finishes the module. Mastery also needs 80% of its problems solved.
What you will be able to do
- Implement move constructors and explain when moves replace copies
- Express ownership with unique_ptr and shared_ptr and know their costs
- Reduce allocations with reserve, pools and arenas
- Lay out data for cache locality
- Measure before and after an optimisation
Before you start
Prerequisites: this module uses their material directly.
Lessons
1.Move SemanticsValue categories, rvalue references, writing move constructors, what std::move really does, why noexcept moves matter for std::vector, and copy elision.18m2.Smart Pointers and Ownershipunique_ptr for sole ownership, shared_ptr and the real cost of its control block and atomic reference count, weak_ptr for cycles, the make_ functions, and how function signatures communicate ownership.17m3.Memory AllocationWhat new and malloc actually cost, removing allocations with reserve and buffer reuse, fixed-size object pools, arena allocators with std::pmr, and keeping the hot path allocation-free.18m4.Cache-Friendly Data LayoutMeasure, on a real machine, array-of-structs versus struct-of-arrays, vectors versus scattered linked lists, false sharing between threads and software prefetching, and learn to explain each result.20m5.Compile-Time Programmingconstexpr and consteval functions, compile-time lookup tables, if constexpr in templates, static_assert as executable documentation, and the costs of moving work to the compiler.16m
Where this module fits
- Quant Developer: Required; optional for Python Research Engineering; optional for Quant Platform Engineering