Reference to pointer to constant object

Hello!

As the title suggests, how do I declare a reference to a pointer to a const object?

That is, the pointer points at a constant object. I want to get the reference to this pointer.

Thanks!

//Bobruisk
Last edited on
1
2
3
const int i = 10;
const int *cp = &i;
const int * &rcp = cp;
Thank you, Vlad. :)
Topic archived. No new replies allowed.