다음을 통해 공유


checked_array_iterator::base

checked_array_iterator 로 부터 내부 반복기를 복구합니다.

_Iterator base() const;

설명

자세한 내용은 Checked Iterators을 참조하십시오.

예제

// 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 클래스

표준 템플릿 라이브러리