Contributions

Article
I introduced in my last post “Cooperative Interruption of a Thread in C++20” callbacks. Today, I dive deeper.
Article
A typical question in my C++ seminars is: Can a thread be killed? Before C++20, my answer is no. With C++20, you can ask a thread politely for its interruption.
Article
You can also apply the format specifier for formatted input.
Article
Chrono I/O consists of reading and writing chrono types. The various chrono types support unformatted writing and formatted one with the new formatting library.
Article
Chrono I/O consists of reading and writing chrono types. The various chrono types support unformatted writing and formatted one with the new formatting library.
Article
Today, I will continue to present the functionality of the time zones of the C++20 chrono extension.
Article
Today, I present the time-zones functionality of the C++20 extension.
Article
The extended chrono library makes it relatively easy to ask for the time duration between calendar dates.
Article
I created calendar dates in my last post, “C++20: Creating Calendar Dates,” and I will display and check them today.
Article
In this post, I will dive deeper into calendar dates and create them.
Article
This new data type std::chrono::hh_mm_ss in C++20 stands for the time of day.
Article
Today, I continue my journey through the basic types with time durations and time points.
Article
To get the most out of the chrono extension in C++20, a basic understanding of the chrono terminology is essential.
Article
Implementing a formatter for a user-defined type having more than one value in C++20 is challenging.
Article
Additionally, to the basic types and std::string, you can also format user-defined types in C++20.
Article
In my last post, “The Formatting Library in C++20: The Format String“, I presented a few of the format specifications of the format string. Today, I finish my job.
Article
I introduced “The Formatting Library in C++20” in my last post. Today, I will dive deeper into the format specification of the format string.
Article
Today, I will start a series about the formatting library in C++20. The series is based on my C++20 book.
Article
A std::span represents an object that refers to a contiguous sequence of objects. Today, I want to write about its not-so-obvious features.
Article
You can define the three-way comparison operator or request it from the compiler with =default. But do you know that you can also define or request the equality operator in C++20?
Article
I’m happy to present in this guest post by Ljubic Damir a typical use-case for coroutines: a producer – consumer workflow.
Article
In my last two posts, I presented priority schedulers for coroutines. The schedulers had a bug.
Article
Today, I use the straightforward scheduler from the post “A Priority Scheduler for Coroutines” and improve its priority handling
Article
In this post, I will extend the straightforward scheduler from Dian-Lun with priorities.
Article
The last post “A Concise Introduction to Coroutines by Dian-Lun Li” provide the theory. Today, Dian-Lun presents his single-threaded scheduler for C++ coroutines. This post assumes you are familiar with the previous post “A Concise Introduction to Coroutines by Dian-Lun Li“.
Article
Today, I will start a miniseries about a scheduler for tasks. The starting point of this miniseries is a straightforward scheduler by Dian-Lun Li that becomes increasingly sophisticated.
Article
The ranges library in C++20 made due to performance reasons a few unique design choices. These choices have consequences: cache issues and constness issues.
Article
Thanks to the ranges library, working with the Standard Template Library (STL) is much more comfortable and powerful. First of all, the algorithms of the ranges library are lazy, can work directly on the container, and can be composed. Additionally, the ranges library made a few unique design choices, you must know.
Article
In my last post, “C++20: Module Support of the Big Three“, I compiled a simple module with the Big Three. Today, I drill deeper using the GCC, Clang, and Microsoft Compiler.
Article
I have written almost 100 posts about C++20 in the last four years, but I’m not done. This post continues my story about C++20.

Showing the last 30 only...