Entries by Rainer Grimm

The Formatting Library in C++20: The Format String (2)

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. In today’s post, I will write about the width, precision, and type of the format specification. If you want to know more about the argument id, […]

My ALS Journey: 5/n

As always, I’m pretty busy. I have given C++ classes, created a new mentoring program, and finished my ALS fundraising campaign. But this is not all. Classes and Mentoring Last week, I finished my previous C++20 class. What should I say? It was much fun. Additionally, I finished my fourth mentoring program, “Concurrency with Modern […]

The Formatting Library in C++20: The Format String

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. Let me start with a short recap of the format string. The format string FormatString consists of A replacement field has the format { }. Argument ID You can use an […]

Printed Version of “Concurrency with Modern C++” on Amazon

I have some great news. First, you finally have “Concurrency with Modern C++” on Amazon; second, my book includes C++23. The book has about 700 pages and more than 200 examples. Get the Printed Book: US, UK, DE, FR, ES, IT, NL, PL, SE, JP, CA, and AU Get the Source Code: https://github.com/RainerGrimm/ConcurrencyWithModernCpp (more than 200 […]

The Formatting Library in C++20

Today, I will start a series about the formatting library in C++20. The series is based on my C++20 book. Although Peter Gottschling wrote two great blog posts about the formatting library in C++20 (“std::format in C++20“, “C++20: Extend std::format for User-Defined Types“, I will write about the formatting library again. The reason is simple: […]

My ALS Journey: 4/n

In the last three weeks, a lot happened. I was in the ALS-Ambulanz in Ulm and started a money-raising campaign. Business as Usual After the Christmas break, business as usual is back. I am giving a 3-day Python class this week, teaching the basics and object orientation with Python. I have a long Python history […]

std::span in C++20: More Details

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. A std::span, sometimes also called a view, is never an owner. This contiguous memory can be a plain array, a pointer with a size, a std::array, a std::vector, or a std::string. A typical […]

Our Money-Raising Campaign for ALS Research

Get my 3-book bundle Modern C++ Collection for half the price ($70 -> $35). I will donate the money to the ALS research. Donation sum so far: $5800. Let me start with the facts. Research around ALS is Heavily Underfunded Here is a statement from the ALS-Ambulanz, translated into English: ALS is one of the […]