다음을 통해 공유


hash_map::const_reverse_iterator (STL/CLR)

제어 되는 시퀀스에 있는 상수 역방향 반복기의 종류.

    typedef T4 const_reverse_iterator;

설명

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

예제

// cliext_hash_map_const_reverse_iterator.cpp 
// compile with: /clr 
#include <cliext/hash_map> 
 
typedef cliext::hash_map<wchar_t, int> Myhash_map; 
int main() 
    { 
    Myhash_map c1; 
    c1.insert(Myhash_map::make_value(L'a', 1)); 
    c1.insert(Myhash_map::make_value(L'b', 2)); 
    c1.insert(Myhash_map::make_value(L'c', 3)); 
 
// display contents " [a 1] [b 2] [c 3]" reversed 
    Myhash_map::const_reverse_iterator crit = c1.rbegin(); 
    for (; crit != c1.rend(); ++crit) 
        System::Console::Write(" [{0} {1}]", crit->first, crit->second); 
    System::Console::WriteLine(); 
    return (0); 
    } 
 
  

요구 사항

헤더: < cliext/hash_map >

네임 스페이스: cliext

참고 항목

참조

hash_map (STL/CLR)

hash_map::reverse_iterator (STL/CLR)