受控序列的迭代器的类型。
typedef T1 iterator;
备注
描述类型可以作为一双向迭代数。为控制序列未指定的 T1 类型的对象。
示例
// cliext_hash_set_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"
Myhash_set::iterator it = c1.begin();
for (; it != c1.end(); ++it)
System::Console::Write(" {0}", *it);
System::Console::WriteLine();
return (0);
}
要求
页眉: <cliext/hash_set>
命名空间: cliext