hash_multimap::cbegin
[!POZNÁMKA]
Toto rozhraní API je zastaralé.Alternativou je unordered_multimap Class.
Vrátí const iterátor adresování první prvek hash_multimap.
const_iterator cbegin( ) const;
Vrácená hodnota
Const obousměrný iterátor adresování první prvek hash_multimap Class nebo umístění následných prázdné hash_multimap.
Příspěvek
Vrácená hodnota cbegin, hash_multimap objekt nelze upravit.
V aplikaci Visual C++ .NET 2003, členové <hash_map> a <hash_set> jsou již v oboru názvů std soubory hlaviček, ale spíše být přesunut do oboru názvů stdext.Viz stdext obor názvů Další informace.
Příklad
// hash_multimap_cbegin.cpp
// compile with: /EHsc
#include <hash_multimap>
#include <iostream>
int main( )
{
using namespace std;
using namespace stdext;
hash_multimap <int, int> hm1;
hash_multimap <int, int> :: const_iterator hm1_cIter;
typedef pair <int, int> Int_Pair;
hm1.insert ( Int_Pair ( 2, 4 ) );
hm1_cIter = hm1.cbegin ( );
cout << "The first element of hm1 is "
<< hm1_cIter -> first << "." << endl;
}
Požadavky
Záhlaví: <hash_map>
Obor názvů: stdext