Udostępnij za pośrednictwem


multimap::crbegin

Zwraca iteratora const, adresowania pierwszy element w wycofanej Mapa wielokrotnego dopasowania.

const_reverse_iterator crbegin( ) const;

Wartość zwracana

Stała odwrócić iteratora dwukierunkowy adresowania pierwszy element w odwróconej multimap Class lub adresowania, co było ostatni element w stałe multimap.

Uwagi

crbeginjest używana z odwróconą multimap jako rozpocząć jest używana z multimap.

Zwracana wartość crbegin, multimap obiektu nie można modyfikować.

crbeginmożna wykonać iterację multimap Wstecz.

Przykład

// multimap_crbegin.cpp
// compile with: /EHsc
#include <map>
#include <iostream>

int main( )
{
   using namespace std;
   multimap <int, int> m1;

   multimap <int, int> :: const_reverse_iterator m1_crIter;
   typedef pair <int, int> Int_Pair;

   m1.insert ( Int_Pair ( 1, 10 ) );
   m1.insert ( Int_Pair ( 2, 20 ) );
   m1.insert ( Int_Pair ( 3, 30 ) );

   m1_crIter = m1.crbegin( );
   cout << "The first element of the reversed multimap m1 is "
        << m1_crIter -> first << "." << endl;
}
  

Wymagania

Nagłówek: <map>

Obszar nazw: std

Zobacz też

Informacje

multimap Class

Standardowa biblioteka szablonu