hash_multiset::crbegin

备注

此 API 已过时。替代为 unordered_multiset 类

返回满足处于已撤消的 hash_multiset 的 const 迭代器的第一个元素。

const_reverse_iterator crbegin( ) const;

返回值

解决已撤消的 hash_multiset 类 的第一个元素或解决操作的常量撤消双向迭代器位于 unreversed hash_multiset的最后一个元素。

备注

正值 hash_multiset::begin 与 hash_multiset一起使用时,crbegin 使用的反转 hash_multiset。

返回值 crbegin,不能修改 hash_multiset 对象。

crbegin 可用来通过 hash_multiset 向后循环访问。

在Visual C++ .NET 2003中,成员<hash_map><hash_set> 头文件不再在std命名空间,而是已经进入了stdext命名空间。 有关更多信息,请参见 stdext 命名空间

示例

// hash_multiset_crbegin.cpp
// compile with: /EHsc
#include <hash_multiset>
#include <iostream>

int main( )
{
   using namespace std;
   using namespace stdext;
   hash_multiset <int> hs1;
   hash_multiset <int>::const_reverse_iterator hs1_crIter;

   hs1.insert( 10 );
   hs1.insert( 20 );
   hs1.insert( 30 );

   hs1_crIter = hs1.crbegin( );
   cout << "The first element in the reversed hash_multiset is "
        << *hs1_crIter << "." << endl;
}
  

要求

Header: <hash_set>

**命名空间:**stdext

请参见

参考

hash_multiset 类

标准模板库