std::ssize() in C++20 -- by Bartlomiej Filipek
Speaking of std::ssize...
std::ssize() in C++20
by Bartlomiej Filipek
From the article:
In this article, I’ll show another technique that avoids mixing signed and unsigned types.
In my article Integer Conversions and Safe Comparisons in C++20 we learned about
cmp_*integer comparison functions that allow us to compare various types of integer types. The functions are safe because they help with mixing signed and unsigned types. In C++20, there’s another handy feature: the non-memberstd::ssize()function that returns a signed number of elements in a container.Let’s see how to use it. ...

Making C++ easier to understand:
The second video from CppCon 2022 has now been posted:
The first CppCon 2022 video is now available.
Mixing integer types... what could go wrong? And how to make it go right?
News from the conference, happening live in Aurora, CO, USA this week: