...

/

The constinit Keyword

The constinit Keyword

Understand the use of the 'constinit' keyword in C++20.

We'll cover the following...

Introduction

constinit can be applied to variables with static storage duration or thread storage duration:

  • Global (namespace) variables, static variables, or static class members have static storage
...