I knew that constexpr is used when a variable can be evaluated at compile time.
constexpr
Now I'm thinking if we could use constexpr on a pointer? For example, constexpr int *p = &i; or int * constexpr j = i;?
constexpr int *p = &i;
int * constexpr j = i;
Aucun commentaire:
Enregistrer un commentaire