Modern C++ (C++11 → C++23)
Version by version: what each standard added and how it replaces the old way.
C++11
- auto, nullptr and Range-based for C++11 beginner
Let the compiler deduce types, use a real null pointer, and iterate containers without iterator boilerplate.
- Uniform Initialization and initializer_list C++11 beginner
Brace initialization, narrowing rules and std::initializer_list.
- Move Semantics and unique_ptr C++11 intermediate
Transfer resources instead of copying them, and use unique_ptr for safe exclusive ownership.
- shared_ptr and weak_ptr C++11 intermediate
Shared ownership, reference cycles and weak references.
- Lambda Expressions C++11 intermediate
Captures, closures and using lambdas with algorithms.
- constexpr, static_assert and decltype C++11 intermediate
Compile-time evaluation and checking.
- enum class, override and final C++11 beginner
Scoped enums and safer inheritance.
- Variadic Templates C++11 advanced
Parameter packs and perfect forwarding.
- Threads, Mutexes and Atomics C++11 advanced
std::thread, mutex, condition_variable, future and atomic.
- unordered containers, chrono and random C++11 intermediate
Hash containers, time utilities and the <random> library.
C++14
- Generic Lambdas and Init Captures C++14 intermediate
auto parameters and capture by move.
- make_unique and Return Type Deduction C++14 beginner
Exception-safe allocation and auto return types.
- Variable Templates and Relaxed constexpr C++14 advanced
More powerful compile-time code.
- Binary Literals and Digit Separators C++14 beginner
0b1010 and 1'000'000.
C++17
- Structured Bindings and std::optional C++17 intermediate
Unpack pairs, tuples and structs in one line, and represent "maybe a value" without sentinel values.
- if constexpr and if/switch Initializers C++17 intermediate
Compile-time branches and scoped init statements.
- std::string_view C++17 intermediate
Non-owning string references and their lifetime risks.
- std::variant and std::any C++17 intermediate
Type-safe unions, std::visit and type erasure.
- std::filesystem C++17 beginner
Paths, directory iteration and file operations.
- CTAD, Fold Expressions and Inline Variables C++17 advanced
Template deduction for classes and variadic folds.
- Parallel Algorithms C++17 advanced
Execution policies for standard algorithms.
C++20
- Concepts and Constraints C++20 advanced
Name and check template requirements.
- Ranges and Views C++20 intermediate
Composable, lazy pipelines over sequences.
- Coroutines C++20 advanced
co_await, co_yield and co_return.
- Modules C++20 advanced
import/export as a replacement for headers.
- Three-way Comparison (<=>) C++20 intermediate
The spaceship operator and defaulted comparisons.
- std::format and std::span C++20 beginner
Type-safe formatting and non-owning array views.
- consteval, jthread and Other Additions C++20 intermediate
Immediate functions, cooperative cancellation and designated initializers.
C++23
- std::expected C++23 intermediate
Error handling without exceptions.
- std::print and import std C++23 beginner
Simpler output and standard library modules.
- Deducing this C++23 advanced
Explicit object parameters.
- mdspan and flat_map C++23 advanced
Multidimensional views and contiguous associative containers.
- Ranges Additions in C++23 C++23 intermediate
to<>, zip, enumerate, chunk and more.