C++Compile-time evaluation determines values under C++ constant-expression rules. Learn how constexpr, consteval, and static_assert differ, and distinguish branch selection with if constexpr from conditional compilation controlled by a feature flag.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Conditional control flow chooses which part of a program executes based on a condition. Learn if, else if, else, conversion to bool, short-circuit evaluation of logical operators, and value selection with ?:.
Basic · C++23; repository compiler flag, production runtime not attestedC++Distinguish guaranteed construction from a prvalue, optional NRVO, and implicit move in C++23. Returning by value does not necessarily copy anything, but program correctness must not depend on NRVO being performed.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++A coroutine can suspend execution and resume later while preserving the state it needs. The keywords co_await, co_yield, and co_return cooperate with a promise type and a coroutine handle; they do not automatically start a thread or scheduler.
Advanced · C++23; repository compiler flag, production runtime not attestedC++A pipeline divides data processing into successive stages. In C++, range adaptors let you compose filtering and transformation with operator |, while the resulting view computes values lazily during iteration.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Error handling separates detecting failure from deciding what to do next. Learn transient versus permanent failure, bounded retry, fallback, and idempotence through a deterministic std::expected example.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Exception-safety guarantees specify what remains after an operation fails: valid state, unchanged state, or no escaping exception. Copy-and-swap can provide the strong guarantee by preparing a copy before committing a change.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Expressions describe computations, while operators specify actions on operands. Learn precedence, associativity, evaluation order, and short-circuit evaluation to read and write C++ expressions correctly.
Basic · C++23; repository compiler flag, production runtime not attestedC++std::filesystem provides paths and filesystem operations. Distinguish a pathname from an existing file, and this library from a VFS: C++23 does not define a standard interface for plugging in custom filesystems.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Combine std::views::filter and std::views::transform to select range elements and compute new values. The pipeline creates a lazy view rather than a ready-made container of results.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++A finite-state machine (FSM) describes behavior using a finite set of states and event-driven transitions. In C++, enum class and a transition function can represent the model while making each next-state rule explicit.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++A function describes an operation called with arguments. Learn the difference between declarations and definitions, parameters and arguments, and passing by value versus passing by reference.
Basic · C++23; repository compiler flag, production runtime not attestedC++Input/output transfers data, while serialization defines its representation. Learn how to encode an integer in little-endian order, decode it safely, and supplement round-trip validation with a known-byte check.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++The iterator pair first and last describes [first, last): the beginning is included and the end is excluded. The std::vector range constructor constructs elements from that range; equal boundaries describe an empty range.
Basic · C++23; repository compiler flag, production runtime not attestedC++An iterator describes a position and how to traverse a sequence, while a generator produces its elements on demand. Learn about half-open ranges, sentinels, iterator categories, and the single-pass std::generator from C++23.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Linear search checks successive elements without requiring sorting. In C++, std::find returns an iterator to the first match or the end iterator.
Basic · C++23; repository compiler flag, production runtime not attestedC++Loops repeat statements. Learn the differences between while, do ... while, classic for, and range-based for, and how break, continue, and references affect iteration.
Basic · C++23; repository compiler flag, production runtime not attestedC++Separate storage from the object living in it and from responsibility for a resource. Understand automatic and dynamic storage duration, copy semantics, placement new, explicit destruction, and strict-aliasing restrictions.
Advanced · C++23; repository compiler flag, production runtime not attestedC++A named module groups translation units and exposes declarations through export. import lets clients use its interface without textually including a file. The module boundary separates API from implementation, but is neither a security boundary nor a separate namespace.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++A node handle owns an element extracted from an associative container. It lets you modify its key and transfer the node to a compatible container without copying or moving the element itself. Correct use requires checking emptiness, allocator compatibility, and insertion results.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Numeric types determine how values are represented and calculations behave. Learn the division into integral and floating-point types, the difference between signed and unsigned, and how conversions affect division and information loss.
Basic · C++23; repository compiler flag, production runtime not attestedC++An object has a type, storage, and a lifetime; it can contain member and base-class subobjects. Composition connects objects through members, while inheritance enables a shared interface. The language determines initialization and destruction order.
Intermediate · C++23; repository compiler flag, production runtime not attestedC++Pools and arenas manage storage, but an address does not establish object identity. Reusing a slot can leave a pointer without a live target or make it refer to a different object. Distinguish storage duration, object lifetime, and application-level handle validity.
Advanced · C++23; repository compiler flag, production runtime not attestedC++Complexity describes how cost grows with input size, not a number of milliseconds. AoS and SoA layouts can have the same complexity while using caches differently. Choosing between them requires measurements for the actual access pattern.
Intermediate · C++23; repository compiler flag, production runtime not attested