Tag: C++20
18 posts
-
[2026] C++ Aggregate Initialization | Braces for Structs and Arrays
Aggregates are structs and arrays that meet standard rules; braces initialize members directly. C++20 designated initializers, contrasts with default/va...
-
[2026] C++ Concepts and Constraints | Type Requirements in C++20
C++20 concepts and constraints: requires clauses, standard concepts, custom concepts, and how they replace verbose SFINAE for clearer template errors.
-
[2026] C++ Constant Initialization | `constexpr`, `constinit`, and Static Order
Constant initialization in C++: compile-time fixed values, `constexpr` vs `constinit`, static initialization order, and how to avoid the static initiali...
-
[2026] C++20 consteval Complete Guide | Immediate Functions and Compile-Time-Only Evaluation
Master C++20 consteval: immediate functions that must execute at compile time, constexpr vs consteval differences, compile-time validation, string hashi...
-
[2026] C++ Coroutines | Asynchronous Programming in C++20
C++20 coroutines: coroutine_handle, promise_type, co_await, generators, Task patterns, and compiler support for async-style control flow.
-
[2026] C++ date parsing and formatting | chrono, std::format, and time zones
Format and parse calendar dates with C++20 chrono, std::format, parse, zoned_time, locale-aware weekday names, and common pitfalls for wire formats vs d...
-
[2026] C++ Designated Initializers (C++20) | `.field = value` for Aggregates
C++20 designated initializers let you name struct members in brace initialization. Declaration order required; differs from C flexibility. Aggregate-onl...
-
[2026] C++ jthread | Auto-Join Threads Guide
C++ jthread — automatic join threads and stop_token. Describes the basics of jthread with practical examples. Start now.
-
[2026] C++ Range Adaptors | Pipeline Composition in C++20
C++20 range adaptors: filter, transform, pipe syntax, lazy views, custom adaptors, and lifetime—how they relate to std::views.
-
[2026] C++ constexpr Functions and Variables: Compute at Compile Time [#26-1]
Master C++ constexpr: compile-time constants, constexpr functions, literal types, C++14/20 rules, if constexpr, consteval, lookup tables, and common err...
-
[2026] C++ std::span | Contiguous Memory View (C++20)
std::span for arrays and vectors: non-owning view, subspan, bounds, const correctness, lifetime pitfalls, and C API interop.
-
[2026] C++ Template Lambdas | Explicit Template Parameters in C++20 Lambdas
C++20 template lambdas: `[]<typename T>(T a, T b)`, concepts constraints, parameter packs, and when they beat generic `auto` lambdas.
-
[2026] C++ Three-Way Comparison | The Spaceship Operator `<=>` (C++20)
C++20 `operator<=>`: `default` memberwise comparison, `strong_ordering`, `weak_ordering`, `partial_ordering`, rewriting `==`, and migration from legacy ...
-
[2026] C++ Views | Lazy Range Views in C++20
C++20 std::views: lazy evaluation, filter, transform, take, drop, and pipeline composition with ranges—when views evaluate and common pitfalls.
-
[2026] C++ Constant Initialization | Guide to Constant Initialization
Everything about C++ Constant Initialization : from basic concepts to practical applications. Master key content quickly with examples.
-
[2026] C++20 Modules: Escape Include Hell and Speed Up Builds with import
C++20 modules: export module, import, partitions, global module fragments, CMake 3.28 FILE_SET MODULES, GCC/Clang/MSVC workflows, common errors, and inc...
-
[2026] C++20 Coroutines: co_await, co_yield, and Escaping Callback Hell
C++20 coroutines explained: co_yield generators, co_await async patterns, promise_type and coroutine_handle, lifetime pitfalls, Task/Generator sketches,...
-
[2026] What Is C++? History, Standards (C++11–23), Use Cases, and How to Start
C++ overview for beginners: evolution from C, C++11/17/20/23, game/systems/finance use cases, pros and cons, myths, learning roadmap, and production pat...