Reference to pointer to constant object

Bobruisk (18)
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
vlad from moscow (3662)
1
2
3
const int i = 10;
const int *cp = &i;
const int * &rcp = cp;
Bobruisk (18)
Thank you, Vlad. :)
Registered users can post here. Sign in or register to post.