I am reading an implementation of auto_ptr in C ++ STL.
I see that the usually required operations on pointers like → and * are overloaded, so that they keep the same value. However, will there be an arithmetic pointer on automatic pointers?
Let's say I have an array of auto pointers, and I want to be able to do something like array + 1 and expect to get the address of the second element of the array. How to get it?
I do not have a practical application for this requirement, just asking out of curiosity.
source
share