lundi 24 décembre 2018

Is constexpr pointer possible? When should we use it?

I knew that constexpr is used when a variable can be evaluated at compile time.

Now I'm thinking if we could use constexpr on a pointer? For example, constexpr int *p = &i; or int * constexpr j = i;?

Aucun commentaire:

Enregistrer un commentaire