3 ms·
I made a mistake. It actually won't allow that. You'd have to write it as: void popFront() { ++index; } Thanks for pointing it out.
by WalterBright 4y ago
I made a mistake. It actually won't allow that. You'd have to write it as:
void popFront() { ++index; }
Thanks for pointing it out.