다음을 통해 공유


deque::iterator (STL/CLR)

제어 되는 시퀀스에 대 한 반복기의 형식입니다.

    typedef T1 iterator;

설명

알 수 없는 형식의 개체 형식을 설명 T1 제어 되는 시퀀스는 임의 액세스 반복기로 사용할 수 있습니다.

예제

// cliext_deque_iterator.cpp 
// compile with: /clr 
#include <cliext/deque> 
 
int main() 
    { 
    cliext::deque<wchar_t> c1; 
    c1.push_back(L'a'); 
    c1.push_back(L'b'); 
    c1.push_back(L'c'); 
 
// display contents " a b c" 
    cliext::deque<wchar_t>::iterator it = c1.begin(); 
    for (; it != c1.end(); ++it) 
        System::Console::Write(" {0}", *it); 
    System::Console::WriteLine(); 
 
// alter first element and redisplay 
    it = c1.begin(); 
    *it = L'x'; 
    for (; it != c1.end(); ++it) 
        System::Console::Write(" {0}", *it); 
    System::Console::WriteLine(); 
    return (0); 
    } 
 
  

요구 사항

헤더: < cliext/있지 않은 deque >

네임 스페이스: cliext

참고 항목

참조

deque (STL/CLR)

deque::const_iterator (STL/CLR)