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
  • 25,259
  • 5
  • 41
  • 83
Talha Tayyab
  • 8,111
  • 25
  • 27
  • 44

0 Answers0