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;
}
必要条件
ヘッダー: の <反復子>
名前空間: stdext