In Google c++ code style, they have said there are some instances where using const T* is preferable to const T& for input parameters.
- You want to pass in a null pointer
- The function saves a pointer or reference to the input.
I don't understand the second one. Could you give me some examples? Thanks.
 
     
     
    