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

With C++20, the chrono library from C++11 receives important additions. The most prominent ones are a 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: 1672

More and More Utilities in C++20

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

Read more
Views: 4925

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

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

Read more
Views: 8049

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
Views: 38560

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 was because with C++20 the story changes.

Read more
Views: 20103

constexpr std::vector and std::string in C++20

Probably the most viral keyword in modern C++ is constexpr. With C++20, we have a constexpr std::vector and a constexpr std::string. Additionally, both containers can be manipulated with the constexpr algorithms of the Standard Template Library. 

Read more
Views: 7349

std::span in C++20: Bounds-Safe Views for Sequences of Objects

In my seminar, I often hear the question: How can I safely pass a plain array to a function? With C++20, the answer is quite easy: Use a std::span.

Read more
Views: 5871

And the Winners are:

Last week,  I launched a quiz. The price was it to win one of the five vouchers for the book "Modern C++ for Absolute Beginners" from Slobodan Dmitrović.

Read more
Views: 1890

Five Vouchers to win for the book "Modern C++ for Absolute Beginners"

Is it possible to introduce C++ in 300 pages? Yes, it is. The book "Modern C++ for Absolute Beginners" from Slobodan Dmitrović proves it.

Read more
Views: 2652

volatile and Other Small Improvements in C++20

Today, I complete my tour through the C++20 core language features with a few small improvements. One interesting of these minor improvements is that most of volatile has been deprecated.

Read more
Views: 7303

My Newest E-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

Subscribe to the newsletter (+ pdf bundle)

Blog archive

Source Code

Visitors

Today 1015

Yesterday 7707

Week 24143

Month 229190

All 4850084

Currently are 146 guests and no members online

Kubik-Rubik Joomla! Extensions

Latest comments