September 18, 2019 17:26:35

Element obtained by the subscript iterator

vector temp = { 1,3,2,4,5,0 };
vector Iterator it temp.begin = :: ();
it + = 2;
// this case superscript corresponding to the element it is
int index = & * it- & temp [0];

https://blog.csdn.net/meanong/article/details/80179680

Guess you like

Origin www.cnblogs.com/chendeqiang/p/11543901.html