Condividi tramite


hash_multiset::crbegin

[!NOTA]

Questo API è obsoleto.L'alternativa consiste unordered_multiset Class.

Restituisce un iteratore const destinato al primo elemento di un hash_multiset invertito.

const_reverse_iterator crbegin( ) const;

Valore restituito

Un iteratore bidirezionale di inversione const destinato al primo elemento in hash_multiset Class invertito o destinato a ciò che era stato ultimo elemento in hash_multisetunreversed.

Note

crbegin viene utilizzato con hash_multiset invertito come hash_multiset::begin viene utilizzato con hash_multiset.

Tramite il valore restituito crbegin, l'oggetto hash_multiset non può essere modificato.

crbegin può essere utilizzato per scorrere hash_multiset indietro.

In Visual C++ .NET 2003, i membri dei file di intestazione <hash_set> e <hash_map> non sono più nello spazio dei nomi di deviazione standard, ma sono stati spostati nello spazio dei nomi di stdext.Per ulteriori informazioni, vedere lo spazio dei nomi stdext.

Esempio

// 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;
}
  

Requisiti

intestazione: <hash_set>

Stdext diSpazio dei nomi:

Vedere anche

Riferimenti

hash_multiset Class

Libreria di modelli standard