The constinit
keyword ensure that a variable with static storage duration is initialized at compile-time, and that the static initialization order fiasco cannot take place.
The constinit
keyword ensure that a variable with static storage duration is initialized at compile-time, and that the static initialization order fiasco cannot take place.