set::iterator (STL/CLR)

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

    typedef T1 iterator;

설명

알 수 없는 형식의 개체 형식을 설명 T1 제어 되는 시퀀스에 대 한 양방향 반복기로 사용할 수 있습니다.

예제

// cliext_set_iterator.cpp 
// compile with: /clr 
#include <cliext/set> 
 
typedef cliext::set<wchar_t> Myset; 
int main() 
    { 
    Myset c1; 
    c1.insert(L'a'); 
    c1.insert(L'b'); 
    c1.insert(L'c'); 
 
// display contents " a b c" 
    Myset::iterator it = c1.begin(); 
    for (; it != c1.end(); ++it) 
        System::Console::Write(" {0}", *it); 
    System::Console::WriteLine(); 
    return (0); 
    } 
 
  

요구 사항

헤더: < cliext/설정 >

네임 스페이스: cliext

참고 항목

참조

set (STL/CLR)

set::const_iterator (STL/CLR)