Table of Contents
Preface
Chaper 1: New C++20 Features
Technical requirements
Format text with the new format library
How to do it…
How it works…
There's more…
Use compile-time vectors and strings with constexpr
How to do it…
How it works…
Safely compare integers of different types
How to do it…
How it works…
Use the "spaceship" operator <=> for three-way comparisons
How to do it…
How it works…
There's more…
Easily find feature test macros with the <version> header
How to do it…
How it works…
Create safer templates with concepts and constraints
How to do it…
How it works…
There's more…
Avoid re-compiling template libraries with modules
How to do it…
How it works…
Create views into containers with ranges
How to do it…
How it works…
There's more… ...
Get C++20 STL Cookbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.