c++ - Assign with nullptr and zero size -


If I am depressed a vector v, it is okay to call it by standard:

 < Code> zero set data (const uint8_t * p, size_t s) {v.assign (p, p + s); } Setdata (nullptr, 0);  

Normally the STL function is always OK to call XXX (finally InputItterator, InputItterator) calls as above Distance (first, last ) == 0 ? It is ok to copy the value to another pointer object,

And it could possibly all implement. It has already been refused to go past in the end (initially == is defined in the beginning) or it is assigned.


Comments