hash_multimap::cend
참고
이 API는 사용되지 않습니다.unordered_multimap 클래스를 대신 사용하는 것이 좋습니다.
Returns a const iterator that addresses the location succeeding the last element in a hash_multimap.
const_iterator cend( ) const;
반환 값
A const bidirectional iterator that addresses the location succeeding the last element in a hash_multimap 클래스. If the hash_multimap is empty, then hash_multimap::cend == hash_multimap::begin.
설명
cend is used to test whether an iterator has reached the end of its hash_multimap.
이 cend 로 반환된 값은 역참조 되지 않아야 합니다.
Visual C++.NET 2003에서, <hash_map> 및 <hash_set> 헤더 파일의 멤버는 더 이상 std 네임스페이스에 존재하지 않습니다. 대신 stdext 네임스페이스로 이동되었습니다. 자세한 내용은 stdext 네임스페이스를 참조하십시오.
예제
// hash_multimap_cend.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 ( 3, 30 ) );
hm1_cIter = hm1.cend( );
hm1_cIter--;
cout << "The value of last element of hm1 is "
<< hm1_cIter -> second << "." << endl;
}
요구 사항
헤더: <hash_map>
네임스페이스: stdext