Modern C++: values to resource safety
8 steps · about 4 h 55 min · Intermediate
- Review the type system (reference, cppreference, 35 min)
Ground later resource and container choices in C++ object and value types.
- Understand value categories (reference, cppreference, 40 min)
Distinguish expressions that name objects from temporary values and movable resources.
- Use RAII for lifetime management (reference, cppreference, 40 min)
Tie resource cleanup to object lifetime instead of manual release paths.
- Store sequences in vector (reference, cppreference, 35 min)
Prefer a standard contiguous container for most dynamic sequences.
- Transform data with range algorithms (reference, cppreference, 40 min)
Express common searches and transformations without hand-written indexing loops.
- Own dynamic resources uniquely (reference, cppreference, 35 min)
Represent exclusive ownership without raw delete calls.
- Use shared ownership deliberately (reference, cppreference, 35 min)
Recognise when reference-counted lifetime is justified and what it costs.
- Handle exceptional failures (reference, cppreference, 35 min)
Understand propagation, cleanup and the boundary between errors and ordinary control flow.