1

The new version of C++ .i.e. C++20 has many changes, removals, and new features. I am trying to understand the keyword "constinit". Please can anyone explain it clearly?

I found this phrase somewhere on the internet about constinit "A variable is constant-initialized by constinit but, it is still mutable?" I am not able to get this.

Evg
  • 23,109
  • 5
  • 38
  • 74
Talha Tayyab
  • 2,102
  • 9
  • 14
  • 25

0 Answers0