logo

Crowdly

Browser

Add to Chrome

Supongamos una lista v = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] implementada mediante ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Supongamos una lista v = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] implementada mediante un vector<int>. Ahora ejecutamos lo siguiente:

auto it1 = v.begin();

auto it2 = it1 + 2;

auto it3 = it1 + 3;

auto it4 = it1 + 4;

auto it5 = v.end();

v.erase(v.begin() + 3);

Suponiendo que el array no se redimensiona durante la operación. ¿Qué iteradores se invalidan tras la operación de borrado?

More questions like this

Want instant access to all verified answers on cvex1.ucm.es?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome