Entries by Rainer Grimm

Calendar and Time-Zones in C++20: Time of Day

With C++20, the chrono library from C++11 receives essential additions. The most prominent ones are calendar and time-zones support. But this is by far not all. C++20 gets new clocks, powerful formatting functionality for time durations, and a time-of-day type.

More and More Utilities in C++20

Today, I present a few utilities for calculating the midpoint of two values, checking if a std::string starts or ends with a substring, and creating callables with std::bind_front. These little utilities may not seem so minor when you need them.

std::format in C++20

Today, I’m happy to present Peter Gottschling’s guest post to the new formatting library in C++20: std::format.  Thanks to std::format, text formatting becomes in C++20 as easy as in Python.