const int * const myfunction () const

michaelh20

Senior member
Sep 4, 2000
482
0
0
const int * const means returning a pointer to an int where
(1) The pointer can't be changed to point at a different int
(2) The data of the pointer can't be changed.


The () const means that the function doesn't change anything in an object (if it's part of an object).


I was just learning all the different meanings.....
 

michaelh20

Senior member
Sep 4, 2000
482
0
0
And then there's static_cast<>(); dynamic_cast<>(), const_cast<>() -- more strange things....