checked_array_iterator::base
从其 checked_array_iterator还原基础迭代器。
_Iterator base() const;
备注
有关更多信息,请参见 经过检查的迭代器。
示例
// checked_array_iterators_base.cpp
// compile with: /EHsc
#include <iterator>
#include <vector>
#include <iostream>
int main() {
using namespace std;
int V1[10];
for (int i = 0; i < 10 ; i++)
V1[i] = i;
int* bpos;
stdext::checked_array_iterator<int*> rpos(V1, 10);
rpos++;
bpos = rpos.base ( );
cout << "The iterator underlying rpos is bpos & it points to: "
<< *bpos << "." << endl;
}
要求
标头: <iterator>
命名空间: stdext