?? hash_multimap.html
字號:
<TD VAlign=top><tt>bool empty() const</tt></TD><TD VAlign=top> <A href="Container.html">Container</A></TD><TD VAlign=top><tt>true</tt> if the <tt>hash_multimap</tt>'s size is <tt>0</tt>.</TD></TR><TR><TD VAlign=top><tt>size_type bucket_count() const</tt></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Returns the number of buckets used by the <tt>hash_multimap</tt>.</TD></TR><TR><TD VAlign=top><tt>void resize(size_type n)</tt></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Increases the bucket count to at least <tt>n</tt>.</TD></TR><TR><TD VAlign=top><tt>hasher hash_funct() const</tt></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Returns the <tt>hasher</tt> object used by the <tt>hash_multimap</tt>.</TD></TR><TR><TD VAlign=top><tt>key_equal key_eq() const</tt></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Returns the <tt>key_equal</tt> object used by the <tt>hash_multimap</tt>.</TD></TR><TR><TD VAlign=top><tt>hash_multimap()</tt></TD><TD VAlign=top> <A href="Container.html">Container</A></TD><TD VAlign=top>Creates an empty <tt>hash_multimap</tt>.</TD></TR><TR><TD VAlign=top><tt>hash_multimap(size_type n)</tt></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Creates an empty <tt>hash_multimap</tt> with at least <tt>n</tt> buckets.</TD></TR><TR><TD VAlign=top><pre>hash_multimap(size_type n, const hasher& h)</pre></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Creates an empty <tt>hash_multimap</tt> with at least <tt>n</tt> buckets, using <tt>h</tt> as the hash function.</TD></TR><TR><TD VAlign=top><pre>hash_multimap(size_type n, const hasher& h, const key_equal& k)</pre></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Creates an empty <tt>hash_multimap</tt> with at least <tt>n</tt> buckets, using <tt>h</tt> as the hash function and <tt>k</tt> as the key equal function.</TD></TR><TR><TD VAlign=top><pre>template <class <A href="InputIterator.html">InputIterator</A>>hash_multimap(InputIterator, InputIterator)<A href="#2">[2]</A></pre></TD><TD VAlign=top> <A href="MultipleHashedAssociativeContainer.html">Multiple Hashed Associative Container</A></TD><TD VAlign=top>Creates a hash_multimap with a copy of a range.</TD></TR><TR><TD VAlign=top><pre>template <class <A href="InputIterator.html">InputIterator</A>>hash_multimap(InputIterator, InputIterator, size_type n)<A href="#2">[2]</A></pre></TD><TD VAlign=top> <A href="MultipleHashedAssociativeContainer.html">Multiple Hashed Associative Container</A></TD><TD VAlign=top>Creates a hash_multimap with a copy of a range and a bucket count of at least <tt>n</tt>.</TD></TR><TR><TD VAlign=top><pre>template <class <A href="InputIterator.html">InputIterator</A>>hash_multimap(InputIterator, InputIterator, size_type n, const hasher& h)<A href="#2">[2]</A></pre></TD><TD VAlign=top> <A href="MultipleHashedAssociativeContainer.html">Multiple Hashed Associative Container</A></TD><TD VAlign=top>Creates a hash_multimap with a copy of a range and a bucket count of at least <tt>n</tt>, using <tt>h</tt> as the hash function.</TD></TR><TR><TD VAlign=top><pre>template <class <A href="InputIterator.html">InputIterator</A>>hash_multimap(InputIterator, InputIterator, size_type n, const hasher& h, const key_equal& k)<A href="#2">[2]</A></pre></TD><TD VAlign=top> <A href="MultipleHashedAssociativeContainer.html">Multiple Hashed Associative Container</A></TD><TD VAlign=top>Creates a hash_multimap with a copy of a range and a bucket count of at least <tt>n</tt>, using <tt>h</tt> as the hash function and <tt>k</tt> as the key equal function.</TD></TR><TR><TD VAlign=top><tt>hash_multimap(const hash_multimap&)</tt></TD><TD VAlign=top> <A href="Container.html">Container</A></TD><TD VAlign=top>The copy constructor.</TD></TR><TR><TD VAlign=top><tt>hash_multimap& operator=(const hash_multimap&)</tt></TD><TD VAlign=top> <A href="Container.html">Container</A></TD><TD VAlign=top>The assignment operator</TD></TR><TR><TD VAlign=top><tt>void swap(hash_multimap&)</tt></TD><TD VAlign=top> <A href="Container.html">Container</A></TD><TD VAlign=top>Swaps the contents of two hash_multimaps.</TD></TR><TR><TD VAlign=top><tt>iterator insert(const value_type& x)</tt></TD><TD VAlign=top> <A href="MultipleAssociativeContainer.html">Multiple Associative Container</A></TD><TD VAlign=top>Inserts <tt>x</tt> into the <tt>hash_multimap</tt>.</TD></TR><TR><TD VAlign=top><pre>template <class <A href="InputIterator.html">InputIterator</A>>void insert(InputIterator, InputIterator)<A href="#2">[2]</A></pre></TD><TD VAlign=top> <A href="MultipleAssociativeContainer.html">Multiple Associative Container</A></TD><TD VAlign=top>Inserts a range into the <tt>hash_multimap</tt>.</TD></TR><TR><TD VAlign=top><tt>void erase(iterator pos)</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Erases the element pointed to by <tt>pos</tt>.</TD></TR><TR><TD VAlign=top><tt>size_type erase(const key_type& k)</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Erases the element whose key is <tt>k</tt>.</TD></TR><TR><TD VAlign=top><tt>void erase(iterator first, iterator last)</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Erases all elements in a range.</TD></TR><TR><TD VAlign=top><tt>void clear()</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Erases all of the elements.</TD></TR><TR><TD VAlign=top><tt>const_iterator find(const key_type& k) const</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Finds an element whose key is <tt>k</tt>.</TD></TR><TR><TD VAlign=top><tt>iterator find(const key_type& k)</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Finds an element whose key is <tt>k</tt>.</TD></TR><TR><TD VAlign=top><tt>size_type count(const key_type& k) const</tt></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Counts the number of elements whose key is <tt>k</tt>.</TD></TR><TR><TD VAlign=top><pre>pair<const_iterator, const_iterator> equal_range(const key_type& k) const</pre></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Finds a range containing all elements whose key is <tt>k</tt>.</TD></TR><TR><TD VAlign=top><pre>pair<iterator, iterator> equal_range(const key_type& k)</pre></TD><TD VAlign=top> <A href="AssociativeContainer.html">Associative Container</A></TD><TD VAlign=top>Finds a range containing all elements whose key is <tt>k</tt>.</TD></TR><TR><TD VAlign=top><pre>bool operator==(const hash_multimap&, const hash_multimap&)</pre></TD><TD VAlign=top> <A href="HashedAssociativeContainer.html">Hashed Associative Container</A></TD><TD VAlign=top>Tests two hash_multimaps for equality. This is a global function, not a member function.</TD></tr></table><h3>New members</h3>All of <tt>hash_multimap</tt>'s members are defined in the <A href="MultipleHashedAssociativeContainer.html">Multiple Hashed Associative Container</A> and <A href="PairAssociativeContainer.html">Pair Associative Container</A>requirements. <tt>Hash_multimap</tt> does not introduce any newmembers.<h3>Notes</h3><P><A name="1">[1]</A><tt>Hash_multimap::iterator</tt> is not a mutable iterator, because<tt>hash_multimap::value_type</tt> is not<A href="Assignable.html">Assignable</A>. That is, if <tt>i</tt> is oftype <tt>hash_multimap::iterator</tt> and <tt>p</tt> is of type<tt>hash_multimap::value_type</tt>, then <tt>*i = p</tt> is not avalid expression. However, <tt>hash_multimap::iterator</tt> isn't aconstant iterator either, because it can be used to modify the objectthat it points to. Using the same notation as above,<tt>(*i).second = p</tt> is a valid expression.<P><A name="2">[2]</A>This member function relies on <i>member template</i> functions, whichat present (early 1998) are not supported by all compilers. If yourcompiler supports member templates, you can call this function withany type of <A href="InputIterator.html">input iterator</A>. If yourcompiler does not yet support member templates, though, then thearguments must either be of type <tt>const value_type*</tt> or of type<tt>hash_multimap::const_iterator</tt>.<h3>See also</h3><A href="AssociativeContainer.html">Associative Container</A>,<A href="HashedAssociativeContainer.html">Hashed Associative Container</A>, <A href="PairAssociativeContainer.html">Pair Associative Container</A>,<A href="MultipleHashedAssociativeContainer.html">Multiple Hashed Associative Container</A>, <tt><A href="set.html">set</A></tt>,<tt><A href="Map.html">map</A></tt>,<tt><A href="multiset.html">multiset</A></tt>,<tt><A href="Multimap.html">multimap</A></tt>,<tt><A href="hash_set.html">hash_set</A></tt>, <tt><A href="hash_map.html">hash_map</A></tt>,<tt><A href="hash_multiset.html">hash_multiset</A></tt><!--start footer--> <HR SIZE="6"><A href="http://www.sgi.com/"><IMG SRC="surf.gif" HEIGHT="54" WIDTH="54" ALT="[Silicon Surf]"></A><A HREF="index.html"><IMG SRC="stl_home.gif" HEIGHT="54" WIDTH="54" ALT="[STL Home]"></A><BR><FONT SIZE="-2"><A href="http://www.sgi.com/Misc/sgi_info.html" TARGET="_top">Copyright © 1999 Silicon Graphics, Inc.</A> All Rights Reserved.</FONT><FONT SIZE="-3"><a href="http://www.sgi.com/Misc/external.list.html" TARGET="_top">TrademarkInformation</A></FONT><P></BODY></HTML>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -