Is overwriting queued elements defined?

I.e. do we expect anything specific to happen in the case

    q.push(0);
    q.push(1);
    q.push(2);
    q.push(3);
    q.push(4);
    q.push(5);
or is this up to the implementation?