hash_set::reverse_iterator (STL/CLR)
Тип обратного итератора для контролируемой последовательности.
typedef T3 reverse_iterator;
Заметки
Описывает тип объекта неспецифицированного типа T3, который можно использовать в качестве обратного итератор для контролируемой последовательности.
Пример
// cliext_hash_set_reverse_iterator.cpp
// compile with: /clr
#include <cliext/hash_set>
typedef cliext::hash_set<wchar_t> Myhash_set;
int main()
{
Myhash_set c1;
c1.insert(L'a');
c1.insert(L'b');
c1.insert(L'c');
// display contents " a b c" reversed
Myhash_set::reverse_iterator rit = c1.rbegin();
for (; rit != c1.rend(); ++rit)
System::Console::Write(" {0}", *rit);
System::Console::WriteLine();
return (0);
}
Требования
Заголовок:<cliext/hash_set>
Пространство имен: cliext
См. также
Ссылки
hash_set::const_iterator (STL/CLR)