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