Feature Testing with C++20

When your program's compilation broke with a brand-new C++20 feature, you often end with a few questions: Did I do something wrong? Did I find a compiler bug? Does my compiler not yet support this feature? Thanks to the feature testing in C++20, the last question is easy to answer.

Read more
Views: 12436

Safe Comparisons of Integrals with C++20

 When you compare signed and unsigned integers, you may not get the result you expect. Thanks to the six std::cmp_* functions, there is a cure in C++20.

Read more
Views: 23278

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

This post concludes my introduction to the chrono extension in C++20. Today I present the time-zones functionality.

Read more
Tags: Time
Views: 38046

Calendar and Time-Zones in C++20: Handling Calendar Dates

In my last post, "Calendar and Time Zone in C++20: Calendar Dates", I presented the new calendar-related data types. Today, I go one step further and interact with them.

Read more
Tags: Time
Views: 12064

Calendar and Time-Zones in C++20: Calendar Dates

A new type of the chrono extension in C++20 is a calendar date. C++20 offers various ways to create a calendar date and interact with them.

Read more
Tags: Time
Views: 17721

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.

Read more
Tags: Time
Views: 25543

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.

Read more
Views: 16256

C++20: Extend std::format for User-Defined Types

Peter Gottschling presented in his last post "std::format in C++20" the basics of the new formatting library in C++20. In today's post, Peter writes about the formatting of user-defined types.

Read more
Tags: format
Views: 33186

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.

Read more
Tags: format
Views: 122855

More Convenience Functions for Containers with C++20

Removing elements from a container or asking if an associative container has a specific key is too complicated. I should say it was because with C++20, the story changes.

Read more
Views: 40488

Stay Informed about my Mentoring

 

Mentoring

English Books

Course: Modern C++ Concurrency in Practice

Course: C++ Standard Library including C++14 & C++17

Course: Embedded Programming with Modern C++

Course: Generic Programming (Templates)

Course: C++ Fundamentals for Professionals

Course: The All-in-One Guide to C++20

Course: Master Software Design Patterns and Architecture in C++

Subscribe to the newsletter (+ pdf bundle)

All tags

Blog archive

Source Code

Visitors

Today 4877

Yesterday 6193

Week 11070

Month 32744

All 12110953

Currently are 187 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments