hash_multimap::const_iterator
참고
이 API는 사용되지 않습니다.unordered_multimap 클래스를 대신 사용하는 것이 좋습니다.
A type that provides a bidirectional iterator that can read a const element in the hash_multimap.
typedef list<typename Traits::value_type, typename Traits::allocator_type>::const_iterator const_iterator;
설명
이 const_iterator 유형은 요소의 값을 수정하는 것을 사용할 수 없습니다.
The const_iterator defined by hash_multimap points to objects of value_type, which are of type pair*<const Key, Type>*. The value of the key is available through the first member pair, and the value of the mapped element is available through the second member of the pair.
To dereference a const_iterator cIter pointing to an element in a hash_multimap, use the -> operator.
To access the value of the key for the element, use cIter -> first, which is equivalent to (*cIter).first. To access the value of the mapped datum for the element, use cIter -> second, which is equivalent to (*cIter).first.
Visual C++.NET 2003에서, <hash_map> 및 <hash_set> 헤더 파일의 멤버는 더 이상 std 네임스페이스에 존재하지 않습니다. 대신 stdext 네임스페이스로 이동되었습니다. 자세한 내용은 stdext 네임스페이스를 참조하십시오.
예제
See the example for begin for an example using const_iterator.
요구 사항
헤더: <hash_map>
네임스페이스: stdext