Aracılığıyla paylaş


hash_multiset::crend

[!NOT]

Bu API artık kullanılmıyor.Alternatif unordered_multiset Class.

Tersine çevrilmiş hash_multiset'deki son öğe izleyen konum adresleri const bir yineleyici döndürür.

const_reverse_iterator crend( ) const;

Dönüş Değeri

Bir const izleyen bir ters'deki son öğe konumu ele çift yönlü Yineleyici ters hash_multiset Class (ilk öğe unreversed önünde konumu hash_multiset).

Notlar

crendkullanılan bir ters işlem ile hash_multiset gibi hash_multiset::end ile kullanılan bir hash_multiset.

Dönüş değeri olan crend, hash_multiset nesnesi değiştirilemez.

crendters bir yineleyici olup, hash_multiset sonuna ulaştı için test etmek için kullanılabilir.

Visual C++ .NET 2003, üyeleri de <hash_map> ve <hash_set> başlık dosyaları artık std ad alanında bulunan, ancak bunun yerine stdext ad alanına taşınmış.Bkz: ad stdext daha fazla bilgi için.

Örnek

// hash_multiset_crend.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.crend( );
   hs1_crIter--;
   cout << "The last element in the reversed hash_multiset is "
        << *hs1_crIter << "." << endl;
}
  

Gereksinimler

Başlık: <hash_multiset>

Ad alanı: stdext

Ayrıca bkz.

Başvuru

hash_multiset Class

Standart Şablon Kütüphanesi