Question about std::string erase

Example string "012345"
If I use string.erase(0,0) the output is unchanged.

If using string.erase(0,1) the output is "12345"

However, if I use string.erase(1,1) the output is now "02345"
And string.erase(1,2) is "0345"

Why is case for index 0 a different operation than other index values?
the second parameter is the number of characters to erase.
Topic archived. No new replies allowed.