次の方法で共有


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

参照

関連項目

checked_array_iterator Class

標準テンプレート ライブラリ