Shouldn't the test instead be:
const int * const <variable name>
Haven't profiled it but would make more sense to have the pointer also be const instead of having a non const pointer as input?
Haven't profiled it but would make more sense to have the pointer also be const instead of having a non const pointer as input?
Const pointer is a statement about the internal variables of a function definition, usually not of any interest outside the function itself and therefore rarely used.
...and in fact not even part of the name mangling (for the exact reason you mentioned): https://godbolt.org/z/1pjecq