迭代器的begin,end:
vector<int> v;
const vector<int> cv;
auto it1 = v.begin();
auto it2 = cv.begin();
auto it3 = v.cbegin();
Warning!!!!!
凡是使用了迭代器的vector,不要向其中添加元素,会是迭代器失效
指针也是迭代器,指针的begin,end:
int a[] = {0,1,2,3,4,5,6,7,8,9};
int *beg = begin(ia);
int *last = end(ia); //指向尾元素的下一位置