const specifier for pointer
I can declare foo(const T& var) so that I know var won't be changed.  

Equivalent format for pointer would be foo(const T* var)?

In the past I tried those, errors related to iterator/const_iterator irritated me and I just tended to use (T* var) without considering constness.  

Are there a good doc for declaring function that enforces 'contents pointed by a pointer won't change'?

 


const specifier for pointer
===

I can declare foo(const T& var) so that I know var won't be changed.  

Equivalent format for pointer would be foo(const T* var)?

In the past I tried those, errors related to iterator/const_iterator irritated me and I just tended to use (T* var) without considering constness.  

Are there a good doc for declaring function that enforces 'contents pointed by a pointer won't change'?

 

