2007-08-27 22:48:13 +00:00
<!--
Copyright Daniel James 2006-2007
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
-->
<library-reference >
<!--
Header: <boost / u n o r d e r e d _ s e t . h p p >
-->
<header name= "boost/unordered_set.hpp" >
<namespace name= "boost" >
<!--
boost::unordered_set
-->
<class name= "unordered_set" >
<template >
<template-type-parameter name= "Value" >
</template-type-parameter>
<template-type-parameter name= "Hash" >
<default > <type > boost::hash< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Pred" >
<default > <type > std::equal_to< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Alloc" >
<default > <type > std::allocator< Value> </type> </default>
</template-type-parameter>
</template>
<purpose > An unordered associative container that stores unique values.
</purpose>
<description >
<para > For the normative reference see chapter 23 of
2007-11-03 16:48:06 +00:00
<ulink url= "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf" > the working draft of the C++ standard [n2461].</ulink> </para>
2007-08-27 23:00:30 +00:00
<para > <emphasis role= "bold" > Template Parameters</emphasis>
2007-08-27 22:48:13 +00:00
<informaltable >
<tgroup cols= "2" >
<tbody >
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Value</emphasis> </entry>
<entry > Value must be Assignable and CopyConstructible</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Hash</emphasis> </entry>
<entry > A unary function object type that acts a hash function for a <code > Value</code> . It takes a single argument of type <code > Value</code> and returns a value of type std::size_t.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Pred</emphasis> </entry>
<entry > A binary function object that implements an equivalence relation on values of type <code > Value</code> .
A binary function object that induces an equivalence relation on values of type Key.
It takes two arguments of type Key and returns a value of type bool.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Alloc</emphasis> </entry>
<entry > An allocator whose value type is the same as the container's value type.</entry> </row> </tbody> </tgroup> </informaltable> </para>
<para > The elements are organized into buckets. Keys with the same hash code are stored in the same bucket.</para>
<para > The number of buckets can be automatically increased by a call to insert, or as the result of calling rehash.</para>
2007-08-27 22:48:13 +00:00
</description>
<typedef name= "key_type" >
<type > Value</type>
</typedef>
<typedef name= "value_type" >
<type > Value</type>
</typedef>
<typedef name= "hasher" >
<type > Hash</type>
</typedef>
<typedef name= "key_equal" >
<type > Pred</type>
</typedef>
<typedef name= "allocator_type" >
<type > Alloc</type>
</typedef>
<typedef name= "pointer" >
<type > typename allocator_type::pointer</type>
</typedef>
<typedef name= "const_pointer" >
<type > typename allocator_type::const_pointer</type>
</typedef>
<typedef name= "reference" >
<type > typename allocator_type::reference</type>
<purpose > lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "const_reference" >
<type > typename allocator_type::const_reference</type>
<purpose > const lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "size_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An unsigned integral type.</para>
<para > <type > size_type</type> can represent any non-negative value of <type > difference_type</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "difference_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A signed integral type.</para>
<para > Is identical to the difference type of <type > iterator</type> and <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
<para > Convertible to <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An iterator with the same value type, difference type and pointer and reference type as <type > iterator</type> .</para>
<para > A local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator with the same value type, difference type and pointer and reference type as <type > const_iterator</type> .</para>
<para > A const_local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<constructor specifiers= "explicit" >
2007-08-27 22:48:13 +00:00
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<postconditions >
<code > <methodname > size</methodname> () == 0</code>
</postconditions>
<description >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "f" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "l" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0 and inserts the elements from [f, l) into it.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<parameter >
<paramtype > unordered_set const& </paramtype>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<destructor >
</destructor>
<method name= "operator=" >
<parameter >
<paramtype > unordered_set const& </paramtype>
</parameter>
<type > unordered_set& </type>
<description >
2007-08-27 23:00:30 +00:00
<para > The assignment operator. Copies the contained elements, hash function, predicate and maximum load factor but not the allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</method>
<method name= "get_allocator" cv= "const" >
<type > allocator_type</type>
</method>
<method-group name= "size and capacity" >
<method name= "empty" cv= "const" >
<type > bool</type>
<returns >
<code > <methodname > size</methodname> () == 0</code>
</returns>
</method>
<method name= "size" cv= "const" >
<type > size_type</type>
<returns >
<code > std::distance(<methodname > begin</methodname> (), <methodname > end</methodname> ())</code>
</returns>
</method>
<method name= "max_size" cv= "const" >
<type > size_type</type>
<returns > <code > <methodname > size</methodname> ()</code> of the largest possible container.
</returns>
</method>
</method-group>
<method-group name= "iterators" >
<overloaded-method name= "begin" >
<signature > <type > iterator</type> </signature>
<signature cv= "const" > <type > const_iterator</type> </signature>
<returns > An iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<type > iterator</type>
</signature>
<signature cv= "const" >
<type > const_iterator</type>
</signature>
<returns > An iterator which refers to the past-the-end value for the container.
</returns>
</overloaded-method>
<method name= "cbegin" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</method>
<method name= "cend" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator which refers to the past-the-end value for the container.
</returns>
</method>
</method-group>
<method-group name= "modifiers" >
<method name= "insert" >
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > std::pair< iterator, bool> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container if and only if there is no element in the container with an equivalent value.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The bool component of the return type is true if an insert took place.</para>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > If an insert took place, then the iterator points to the newly inserted element. Otherwise, it points to the element with equivalent value.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "insert" >
<parameter name= "hint" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container if and only if there is no element in the container with an equivalent value.</para>
<para > hint is a suggestion to where the element should be inserted.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > If an insert took place, then the iterator points to the newly inserted element. Otherwise, it points to the element with equivalent value.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > The standard is fairly vague on the meaning of the hint. But the only practical way to use it, and the only way that Boost.Unordered supports is to point to an existing element with the same value. </para>
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "insert" >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "first" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > InputIterator</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts a range of elements into the container. Elements are inserted if and only if there is no element in the container with an equivalent value.</para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > When inserting a single element, if an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "erase" >
<parameter name= "position" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase the element pointed to by <code > position</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following <code > position</code> before the erasure.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase all elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements erased.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "first" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erases the elements in the range from <code > first</code> to <code > last</code> .</para>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
</description>
2007-08-27 22:48:13 +00:00
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following the erased elements - i.e. <code > last</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "clear" >
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Erases all elements in the container.</para>
2007-08-27 22:48:13 +00:00
</description>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > <code > <methodname > size</methodname> () == 0</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
<throws >
2007-08-27 23:00:30 +00:00
<para > Never throws an exception.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
<method name= "swap" >
<parameter >
<paramtype > unordered_set& </paramtype>
</parameter>
<type > void</type>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > key_equal</code> or <code > hasher</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
<method-group name= "observers" >
<method name= "hash_function" cv= "const" >
<type > hasher</type>
<returns > The container's hash function.
</returns>
</method>
<method name= "key_eq" cv= "const" >
<type > key_equal</type>
<returns > The container's key equality predicate.
</returns>
</method>
</method-group>
<method-group name= "lookup" >
<overloaded-method name= "find" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to an element with key equivalent to <code > k</code> , or <code > b.end()</code> if no such element exists.</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<method name= "count" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<overloaded-method name= "equal_range" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > std::pair< iterator, iterator> </type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<type > std::pair< const_iterator, const_iterator> </type>
2007-08-27 22:48:13 +00:00
</signature>
<returns >
2007-08-27 23:01:34 +00:00
<para > A range containing all elements with key equivalent to <code > k</code> .
2007-08-27 23:00:30 +00:00
If the container doesn't container any such elements, returns
<code > <functionname > std::make_pair</functionname> (<methodname > b.end</methodname> (),<methodname > b.end</methodname> ())</code> .
</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
</method-group>
<method-group name= "bucket interface" >
<method name= "bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > An upper bound on the number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket_size" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > size_type</type>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n < <methodname > bucket_count</methodname> ()</code> </para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements in bucket <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The index of the bucket which would contain an element with key <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > The return value is less than <code > bucket_count()</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
</method>
<overloaded-method name= "begin" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the first element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
2007-12-19 23:13:20 +00:00
<method name= "cbegin" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the first element in the bucket with index <code > n</code> .</para>
</returns>
</method>
<method name= "cend" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
</returns>
</method>
2007-08-27 22:48:13 +00:00
</method-group>
<method-group name= "hash policy" >
<method name= "load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The average number of elements per bucket.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Returns the current maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" >
<parameter name= "z" >
<paramtype > float</paramtype>
</parameter>
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Changes the container's maximum load factor, using <code > z</code> as a hint.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "rehash" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Changes the number of buckets so that there at least <code > n</code> buckets, and so that the load factor is less than the maximum load factor.</para>
<para > Invalidates iterators, and changes the order of elements</para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > The function has no effect if an exception is thrown, unless it is thrown by the container's hash function or comparison function.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
2007-10-29 20:20:58 +00:00
<free-function-group name= "swap" >
<function name= "swap" >
<template >
<template-type-parameter name= "Value" >
</template-type-parameter>
<template-type-parameter name= "Hash" >
</template-type-parameter>
<template-type-parameter name= "Pred" >
</template-type-parameter>
<template-type-parameter name= "Alloc" >
</template-type-parameter>
</template>
<parameter name= "x" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_set< Value, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<parameter name= "y" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_set< Value, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<type > void</type>
<effects >
<para > <code > x.swap(y)</code> </para>
</effects>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > Hash</code> or <code > Pred</code> .</para>
2007-10-29 20:20:58 +00:00
</throws>
</function>
</free-function-group>
2007-08-27 22:48:13 +00:00
</class>
<!--
boost::unordered_multiset
-->
<class name= "unordered_multiset" >
<template >
<template-type-parameter name= "Value" >
</template-type-parameter>
<template-type-parameter name= "Hash" >
<default > <type > boost::hash< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Pred" >
<default > <type > std::equal_to< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Alloc" >
<default > <type > std::allocator< Value> </type> </default>
</template-type-parameter>
</template>
<purpose > An unordered associative container that stores values. The same key can be stored multiple times.
</purpose>
<description >
<para > For the normative reference see chapter 23 of
2007-11-03 16:48:06 +00:00
<ulink url= "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf" > the working draft of the C++ standard [n2461].</ulink> </para>
2007-08-27 23:00:30 +00:00
<para > <emphasis role= "bold" > Template Parameters</emphasis>
2007-08-27 22:48:13 +00:00
<informaltable >
<tgroup cols= "2" >
<tbody >
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Value</emphasis> </entry>
<entry > Value must be Assignable and CopyConstructible</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Hash</emphasis> </entry>
<entry > A unary function object type that acts a hash function for a <code > Value</code> . It takes a single argument of type <code > Value</code> and returns a value of type std::size_t.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Pred</emphasis> </entry>
<entry > A binary function object that implements an equivalence relation on values of type <code > Value</code> .
A binary function object that induces an equivalence relation on values of type Key.
It takes two arguments of type Key and returns a value of type bool.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Alloc</emphasis> </entry>
<entry > An allocator whose value type is the same as the container's value type.</entry> </row> </tbody> </tgroup> </informaltable> </para>
<para > The elements are organized into buckets. Keys with the same hash code are stored in the same bucket and elements with equivalent keys are stored next to each other.</para>
<para > The number of buckets can be automatically increased by a call to insert, or as the result of calling rehash.</para>
2007-08-27 22:48:13 +00:00
</description>
<typedef name= "key_type" >
<type > Value</type>
</typedef>
<typedef name= "value_type" >
<type > Value</type>
</typedef>
<typedef name= "hasher" >
<type > Hash</type>
</typedef>
<typedef name= "key_equal" >
<type > Pred</type>
</typedef>
<typedef name= "allocator_type" >
<type > Alloc</type>
</typedef>
<typedef name= "pointer" >
<type > typename allocator_type::pointer</type>
</typedef>
<typedef name= "const_pointer" >
<type > typename allocator_type::const_pointer</type>
</typedef>
<typedef name= "reference" >
<type > typename allocator_type::reference</type>
<purpose > lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "const_reference" >
<type > typename allocator_type::const_reference</type>
<purpose > const lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "size_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An unsigned integral type.</para>
<para > <type > size_type</type> can represent any non-negative value of <type > difference_type</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "difference_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A signed integral type.</para>
<para > Is identical to the difference type of <type > iterator</type> and <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
<para > Convertible to <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An iterator with the same value type, difference type and pointer and reference type as <type > iterator</type> .</para>
<para > A local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator with the same value type, difference type and pointer and reference type as <type > const_iterator</type> .</para>
<para > A const_local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<constructor specifiers= "explicit" >
2007-08-27 22:48:13 +00:00
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<postconditions >
<code > <methodname > size</methodname> () == 0</code>
</postconditions>
<description >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "f" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "l" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0 and inserts the elements from [f, l) into it.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<parameter >
<paramtype > unordered_multiset const& </paramtype>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<destructor >
</destructor>
<method name= "operator=" >
<parameter >
<paramtype > unordered_multiset const& </paramtype>
</parameter>
<type > unordered_multiset& </type>
<description >
2007-08-27 23:00:30 +00:00
<para > The assignment operator. Copies the contained elements, hash function, predicate and maximum load factor but not the allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</method>
<method name= "get_allocator" cv= "const" >
<type > allocator_type</type>
</method>
<method-group name= "size and capacity" >
<method name= "empty" cv= "const" >
<type > bool</type>
<returns >
<code > <methodname > size</methodname> () == 0</code>
</returns>
</method>
<method name= "size" cv= "const" >
<type > size_type</type>
<returns >
<code > std::distance(<methodname > begin</methodname> (), <methodname > end</methodname> ())</code>
</returns>
</method>
<method name= "max_size" cv= "const" >
<type > size_type</type>
<returns > <code > <methodname > size</methodname> ()</code> of the largest possible container.
</returns>
</method>
</method-group>
<method-group name= "iterators" >
<overloaded-method name= "begin" >
<signature > <type > iterator</type> </signature>
<signature cv= "const" > <type > const_iterator</type> </signature>
<returns > An iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<type > iterator</type>
</signature>
<signature cv= "const" >
<type > const_iterator</type>
</signature>
<returns > An iterator which refers to the past-the-end value for the container.
</returns>
</overloaded-method>
<method name= "cbegin" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</method>
<method name= "cend" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator which refers to the past-the-end value for the container.
</returns>
</method>
</method-group>
<method-group name= "modifiers" >
<method name= "insert" >
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > iterator</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to the inserted element.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "insert" >
<parameter name= "hint" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container.</para>
<para > hint is a suggestion to where the element should be inserted.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to the inserted element.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > The standard is fairly vague on the meaning of the hint. But the only practical way to use it, and the only way that Boost.Unordered supports is to point to an existing element with the same value. </para>
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "insert" >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "first" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > InputIterator</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts a range of elements into the container. </para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > When inserting a single element, if an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "erase" >
<parameter name= "position" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase the element pointed to by <code > position</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following <code > position</code> before the erasure.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase all elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements erased.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "first" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erases the elements in the range from <code > first</code> to <code > last</code> .</para>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
</description>
2007-08-27 22:48:13 +00:00
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following the erased elements - i.e. <code > last</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "clear" >
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Erases all elements in the container.</para>
2007-08-27 22:48:13 +00:00
</description>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > <code > <methodname > size</methodname> () == 0</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
<throws >
2007-08-27 23:00:30 +00:00
<para > Never throws an exception.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
<method name= "swap" >
<parameter >
<paramtype > unordered_multiset& </paramtype>
</parameter>
<type > void</type>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > key_equal</code> or <code > hasher</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
<method-group name= "observers" >
<method name= "hash_function" cv= "const" >
<type > hasher</type>
<returns > The container's hash function.
</returns>
</method>
<method name= "key_eq" cv= "const" >
<type > key_equal</type>
<returns > The container's key equality predicate.
</returns>
</method>
</method-group>
<method-group name= "lookup" >
<overloaded-method name= "find" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to an element with key equivalent to <code > k</code> , or <code > b.end()</code> if no such element exists.</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<method name= "count" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<overloaded-method name= "equal_range" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > std::pair< iterator, iterator> </type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<type > std::pair< const_iterator, const_iterator> </type>
2007-08-27 22:48:13 +00:00
</signature>
<returns >
2007-08-27 23:01:34 +00:00
<para > A range containing all elements with key equivalent to <code > k</code> .
2007-08-27 23:00:30 +00:00
If the container doesn't container any such elements, returns
<code > <functionname > std::make_pair</functionname> (<methodname > b.end</methodname> (),<methodname > b.end</methodname> ())</code> .
</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
</method-group>
<method-group name= "bucket interface" >
<method name= "bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > An upper bound on the number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket_size" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > size_type</type>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n < <methodname > bucket_count</methodname> ()</code> </para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements in bucket <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The index of the bucket which would contain an element with key <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > The return value is less than <code > bucket_count()</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
</method>
<overloaded-method name= "begin" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the first element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
2007-12-19 23:13:20 +00:00
<method name= "cbegin" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the first element in the bucket with index <code > n</code> .</para>
</returns>
</method>
<method name= "cend" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
</returns>
</method>
2007-08-27 22:48:13 +00:00
</method-group>
<method-group name= "hash policy" >
<method name= "load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The average number of elements per bucket.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Returns the current maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" >
<parameter name= "z" >
<paramtype > float</paramtype>
</parameter>
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Changes the container's maximum load factor, using <code > z</code> as a hint.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "rehash" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Changes the number of buckets so that there at least <code > n</code> buckets, and so that the load factor is less than the maximum load factor.</para>
<para > Invalidates iterators, and changes the order of elements</para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > The function has no effect if an exception is thrown, unless it is thrown by the container's hash function or comparison function.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
2007-10-29 20:20:58 +00:00
<free-function-group name= "swap" >
<function name= "swap" >
<template >
<template-type-parameter name= "Value" >
</template-type-parameter>
<template-type-parameter name= "Hash" >
</template-type-parameter>
<template-type-parameter name= "Pred" >
</template-type-parameter>
<template-type-parameter name= "Alloc" >
</template-type-parameter>
</template>
<parameter name= "x" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_multiset< Value, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<parameter name= "y" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_multiset< Value, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<type > void</type>
<effects >
<para > <code > x.swap(y)</code> </para>
</effects>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > Hash</code> or <code > Pred</code> .</para>
2007-10-29 20:20:58 +00:00
</throws>
</function>
</free-function-group>
2007-08-27 22:48:13 +00:00
</class>
</namespace>
</header>
<!--
Header: <boost / u n o r d e r e d _ m a p . h p p >
-->
<header name= "boost/unordered_map.hpp" >
<namespace name= "boost" >
<!--
boost::unordered_map
-->
<class name= "unordered_map" >
<template >
<template-type-parameter name= "Key" >
</template-type-parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<template-type-parameter name= "Mapped" >
2007-08-27 22:48:13 +00:00
</template-type-parameter>
<template-type-parameter name= "Hash" >
<default > <type > boost::hash< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Pred" >
<default > <type > std::equal_to< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Alloc" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<default > <type > std::allocator< std::pair< const Key, Mapped> > </type> </default>
2007-08-27 22:48:13 +00:00
</template-type-parameter>
</template>
<purpose > An unordered associative container that associates unique keys with another value.
</purpose>
<description >
<para > For the normative reference see chapter 23 of
2007-11-03 16:48:06 +00:00
<ulink url= "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf" > the working draft of the C++ standard [n2461].</ulink> </para>
2007-08-27 23:00:30 +00:00
<para > <emphasis role= "bold" > Template Parameters</emphasis>
2007-08-27 22:48:13 +00:00
<informaltable >
<tgroup cols= "2" >
<tbody >
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Key</emphasis> </entry>
<entry > Key must be Assignable and CopyConstructible.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<entry > <emphasis > Mapped</emphasis> </entry>
<entry > Mapped must be CopyConstructible</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Hash</emphasis> </entry>
<entry > A unary function object type that acts a hash function for a <code > Key</code> . It takes a single argument of type <code > Key</code> and returns a value of type std::size_t.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Pred</emphasis> </entry>
<entry > A binary function object that implements an equivalence relation on values of type <code > Key</code> .
A binary function object that induces an equivalence relation on values of type Key.
It takes two arguments of type Key and returns a value of type bool.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Alloc</emphasis> </entry>
<entry > An allocator whose value type is the same as the container's value type.</entry> </row> </tbody> </tgroup> </informaltable> </para>
<para > The elements are organized into buckets. Keys with the same hash code are stored in the same bucket.</para>
<para > The number of buckets can be automatically increased by a call to insert, or as the result of calling rehash.</para>
2007-08-27 22:48:13 +00:00
</description>
<typedef name= "key_type" >
<type > Key</type>
</typedef>
<typedef name= "value_type" >
<type > std::pair< Key const, Value> </type>
</typedef>
<typedef name= "mapped_type" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<type > Mapped</type>
2007-08-27 22:48:13 +00:00
</typedef>
<typedef name= "hasher" >
<type > Hash</type>
</typedef>
<typedef name= "key_equal" >
<type > Pred</type>
</typedef>
<typedef name= "allocator_type" >
<type > Alloc</type>
</typedef>
<typedef name= "pointer" >
<type > typename allocator_type::pointer</type>
</typedef>
<typedef name= "const_pointer" >
<type > typename allocator_type::const_pointer</type>
</typedef>
<typedef name= "reference" >
<type > typename allocator_type::reference</type>
<purpose > lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "const_reference" >
<type > typename allocator_type::const_reference</type>
<purpose > const lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "size_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An unsigned integral type.</para>
<para > <type > size_type</type> can represent any non-negative value of <type > difference_type</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "difference_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A signed integral type.</para>
<para > Is identical to the difference type of <type > iterator</type> and <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
<para > Convertible to <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An iterator with the same value type, difference type and pointer and reference type as <type > iterator</type> .</para>
<para > A local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator with the same value type, difference type and pointer and reference type as <type > const_iterator</type> .</para>
<para > A const_local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<constructor specifiers= "explicit" >
2007-08-27 22:48:13 +00:00
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<postconditions >
<code > <methodname > size</methodname> () == 0</code>
</postconditions>
<description >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "f" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "l" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0 and inserts the elements from [f, l) into it.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<parameter >
<paramtype > unordered_map const& </paramtype>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<destructor >
</destructor>
<method name= "operator=" >
<parameter >
<paramtype > unordered_map const& </paramtype>
</parameter>
<type > unordered_map& </type>
<description >
2007-08-27 23:00:30 +00:00
<para > The assignment operator. Copies the contained elements, hash function, predicate and maximum load factor but not the allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</method>
<method name= "get_allocator" cv= "const" >
<type > allocator_type</type>
</method>
<method-group name= "size and capacity" >
<method name= "empty" cv= "const" >
<type > bool</type>
<returns >
<code > <methodname > size</methodname> () == 0</code>
</returns>
</method>
<method name= "size" cv= "const" >
<type > size_type</type>
<returns >
<code > std::distance(<methodname > begin</methodname> (), <methodname > end</methodname> ())</code>
</returns>
</method>
<method name= "max_size" cv= "const" >
<type > size_type</type>
<returns > <code > <methodname > size</methodname> ()</code> of the largest possible container.
</returns>
</method>
</method-group>
<method-group name= "iterators" >
<overloaded-method name= "begin" >
<signature > <type > iterator</type> </signature>
<signature cv= "const" > <type > const_iterator</type> </signature>
<returns > An iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<type > iterator</type>
</signature>
<signature cv= "const" >
<type > const_iterator</type>
</signature>
<returns > An iterator which refers to the past-the-end value for the container.
</returns>
</overloaded-method>
<method name= "cbegin" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</method>
<method name= "cend" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator which refers to the past-the-end value for the container.
</returns>
</method>
</method-group>
<method-group name= "modifiers" >
<method name= "insert" >
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > std::pair< iterator, bool> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container if and only if there is no element in the container with an equivalent key.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The bool component of the return type is true if an insert took place.</para>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > If an insert took place, then the iterator points to the newly inserted element. Otherwise, it points to the element with equivalent key.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "insert" >
<parameter name= "hint" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container if and only if there is no element in the container with an equivalent key.</para>
<para > hint is a suggestion to where the element should be inserted.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > If an insert took place, then the iterator points to the newly inserted element. Otherwise, it points to the element with equivalent key.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > The standard is fairly vague on the meaning of the hint. But the only practical way to use it, and the only way that Boost.Unordered supports is to point to an existing element with the same key. </para>
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "insert" >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "first" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > InputIterator</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts a range of elements into the container. Elements are inserted if and only if there is no element in the container with an equivalent key.</para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > When inserting a single element, if an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "erase" >
<parameter name= "position" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase the element pointed to by <code > position</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following <code > position</code> before the erasure.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase all elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements erased.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "first" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erases the elements in the range from <code > first</code> to <code > last</code> .</para>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
</description>
2007-08-27 22:48:13 +00:00
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following the erased elements - i.e. <code > last</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "clear" >
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Erases all elements in the container.</para>
2007-08-27 22:48:13 +00:00
</description>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > <code > <methodname > size</methodname> () == 0</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
<throws >
2007-08-27 23:00:30 +00:00
<para > Never throws an exception.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
<method name= "swap" >
<parameter >
<paramtype > unordered_map& </paramtype>
</parameter>
<type > void</type>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > key_equal</code> or <code > hasher</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
<method-group name= "observers" >
<method name= "hash_function" cv= "const" >
<type > hasher</type>
<returns > The container's hash function.
</returns>
</method>
<method name= "key_eq" cv= "const" >
<type > key_equal</type>
<returns > The container's key equality predicate.
</returns>
</method>
</method-group>
<method-group name= "lookup" >
<overloaded-method name= "find" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to an element with key equivalent to <code > k</code> , or <code > b.end()</code> if no such element exists.</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<method name= "count" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<overloaded-method name= "equal_range" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > std::pair< iterator, iterator> </type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<type > std::pair< const_iterator, const_iterator> </type>
2007-08-27 22:48:13 +00:00
</signature>
<returns >
2007-08-27 23:01:34 +00:00
<para > A range containing all elements with key equivalent to <code > k</code> .
2007-08-27 23:00:30 +00:00
If the container doesn't container any such elements, returns
<code > <functionname > std::make_pair</functionname> (<methodname > b.end</methodname> (),<methodname > b.end</methodname> ())</code> .
</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<method name= "operator[]" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > mapped_type& </type>
<effects >
2007-08-27 23:00:30 +00:00
<para > If the container does not already contain an elements with a key equivalent to <code > k</code> , inserts the value <code > std::pair< key_type const, mapped_type> (k, mapped_type())</code> </para>
2007-08-27 22:48:13 +00:00
</effects>
<returns >
2007-08-27 23:00:30 +00:00
<para > A reference to <code > x.second</code> where x is the element already in the container, or the newly inserted element with a key equivalent to <code > k</code> </para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-11-16 00:31:12 +00:00
<overloaded-method name= "at" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<signature > <type > Mapped& </type>
2007-11-16 00:31:12 +00:00
<parameter name= "k" > <paramtype > key_type const& </paramtype> </parameter> </signature>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<signature cv= "const" > <type > Mapped const& </type>
2007-11-16 00:31:12 +00:00
<parameter name= "k" > <paramtype > key_type const& </paramtype> </parameter> </signature>
<returns >
<para > A reference to <code > x.second</code> where <code > x</code> is the (unique) element whose key is equivalent to <code > k</code> .</para>
</returns>
<throws >
<para > An exception object of type <code > out_of_range</code> if no such element is present.</para>
</throws>
<notes >
<para > This is not specified in the draft standard, but that is probably an oversight. The issue has been raised in
<ulink url= "http://groups.google.com/group/comp.std.c++/browse_thread/thread/ab7c22a868fd370b" > comp.std.c++</ulink> .</para>
</notes>
</overloaded-method>
2007-08-27 22:48:13 +00:00
</method-group>
<method-group name= "bucket interface" >
<method name= "bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > An upper bound on the number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket_size" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > size_type</type>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n < <methodname > bucket_count</methodname> ()</code> </para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements in bucket <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The index of the bucket which would contain an element with key <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > The return value is less than <code > bucket_count()</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
</method>
<overloaded-method name= "begin" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the first element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
2007-12-19 23:13:20 +00:00
<method name= "cbegin" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the first element in the bucket with index <code > n</code> .</para>
</returns>
</method>
<method name= "cend" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
</returns>
</method>
2007-08-27 22:48:13 +00:00
</method-group>
<method-group name= "hash policy" >
<method name= "load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The average number of elements per bucket.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Returns the current maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" >
<parameter name= "z" >
<paramtype > float</paramtype>
</parameter>
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Changes the container's maximum load factor, using <code > z</code> as a hint.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "rehash" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Changes the number of buckets so that there at least <code > n</code> buckets, and so that the load factor is less than the maximum load factor.</para>
<para > Invalidates iterators, and changes the order of elements</para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > The function has no effect if an exception is thrown, unless it is thrown by the container's hash function or comparison function.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
2007-10-29 20:20:58 +00:00
<free-function-group name= "swap" >
<function name= "swap" >
<template >
<template-type-parameter name= "Key" >
</template-type-parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<template-type-parameter name= "Mapped" >
2007-10-29 20:20:58 +00:00
</template-type-parameter>
<template-type-parameter name= "Hash" >
</template-type-parameter>
<template-type-parameter name= "Pred" >
</template-type-parameter>
<template-type-parameter name= "Alloc" >
</template-type-parameter>
</template>
<parameter name= "x" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_map< Key, Mapped, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<parameter name= "y" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_map< Key, Mapped, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<type > void</type>
<effects >
<para > <code > x.swap(y)</code> </para>
</effects>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > Hash</code> or <code > Pred</code> .</para>
2007-10-29 20:20:58 +00:00
</throws>
</function>
</free-function-group>
2007-08-27 22:48:13 +00:00
</class>
<!--
boost::unordered_multimap
-->
<class name= "unordered_multimap" >
<template >
<template-type-parameter name= "Key" >
</template-type-parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<template-type-parameter name= "Mapped" >
2007-08-27 22:48:13 +00:00
</template-type-parameter>
<template-type-parameter name= "Hash" >
<default > <type > boost::hash< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Pred" >
<default > <type > std::equal_to< Value> </type> </default>
</template-type-parameter>
<template-type-parameter name= "Alloc" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<default > <type > std::allocator< std::pair< const Key, Mapped> > </type> </default>
2007-08-27 22:48:13 +00:00
</template-type-parameter>
</template>
<purpose > An unordered associative container that associates keys with another value. The same key can be stored multiple times.
</purpose>
<description >
<para > For the normative reference see chapter 23 of
2007-11-03 16:48:06 +00:00
<ulink url= "http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2461.pdf" > the working draft of the C++ standard [n2461].</ulink> </para>
2007-08-27 23:00:30 +00:00
<para > <emphasis role= "bold" > Template Parameters</emphasis>
2007-08-27 22:48:13 +00:00
<informaltable >
<tgroup cols= "2" >
<tbody >
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Key</emphasis> </entry>
<entry > Key must be Assignable and CopyConstructible.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<entry > <emphasis > Mapped</emphasis> </entry>
<entry > Mapped must be CopyConstructible</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Hash</emphasis> </entry>
<entry > A unary function object type that acts a hash function for a <code > Key</code> . It takes a single argument of type <code > Key</code> and returns a value of type std::size_t.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Pred</emphasis> </entry>
<entry > A binary function object that implements an equivalence relation on values of type <code > Key</code> .
A binary function object that induces an equivalence relation on values of type Key.
It takes two arguments of type Key and returns a value of type bool.</entry> </row>
2007-08-27 22:48:13 +00:00
<row >
2007-08-27 23:00:30 +00:00
<entry > <emphasis > Alloc</emphasis> </entry>
<entry > An allocator whose value type is the same as the container's value type.</entry> </row> </tbody> </tgroup> </informaltable> </para>
<para > The elements are organized into buckets. Keys with the same hash code are stored in the same bucket and elements with equivalent keys are stored next to each other.</para>
<para > The number of buckets can be automatically increased by a call to insert, or as the result of calling rehash.</para>
2007-08-27 22:48:13 +00:00
</description>
<typedef name= "key_type" >
<type > Key</type>
</typedef>
<typedef name= "value_type" >
<type > std::pair< Key const, Value> </type>
</typedef>
<typedef name= "mapped_type" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<type > Mapped</type>
2007-08-27 22:48:13 +00:00
</typedef>
<typedef name= "hasher" >
<type > Hash</type>
</typedef>
<typedef name= "key_equal" >
<type > Pred</type>
</typedef>
<typedef name= "allocator_type" >
<type > Alloc</type>
</typedef>
<typedef name= "pointer" >
<type > typename allocator_type::pointer</type>
</typedef>
<typedef name= "const_pointer" >
<type > typename allocator_type::const_pointer</type>
</typedef>
<typedef name= "reference" >
<type > typename allocator_type::reference</type>
<purpose > lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "const_reference" >
<type > typename allocator_type::const_reference</type>
<purpose > const lvalue of <type > value_type</type> .</purpose>
</typedef>
<typedef name= "size_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An unsigned integral type.</para>
<para > <type > size_type</type> can represent any non-negative value of <type > difference_type</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "difference_type" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A signed integral type.</para>
<para > Is identical to the difference type of <type > iterator</type> and <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
<para > Convertible to <type > const_iterator</type> .</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator whose value type is <type > value_type</type> . </para>
<para > Any iterator category except output iterator.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > An iterator with the same value type, difference type and pointer and reference type as <type > iterator</type> .</para>
<para > A local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
<typedef name= "const_local_iterator" >
<type > <emphasis > implementation-defined</emphasis> </type>
<description >
2007-08-27 23:00:30 +00:00
<para > A constant iterator with the same value type, difference type and pointer and reference type as <type > const_iterator</type> .</para>
<para > A const_local_iterator object can be used to iterate through a single bucket.</para>
2007-08-27 22:48:13 +00:00
</description>
</typedef>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<constructor specifiers= "explicit" >
2007-08-27 22:48:13 +00:00
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<postconditions >
<code > <methodname > size</methodname> () == 0</code>
</postconditions>
<description >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "f" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "l" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "n" >
<paramtype > size_type</paramtype>
<default > <emphasis > implementation-defined</emphasis> </default>
</parameter>
<parameter name= "hf" >
<paramtype > hasher const& </paramtype>
<default > hasher()</default>
</parameter>
<parameter name= "eq" >
<paramtype > key_equal const& </paramtype>
<default > key_equal()</default>
</parameter>
<parameter name= "a" >
<paramtype > allocator_type const& </paramtype>
<default > allocator_type()</default>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > Constructs an empty container with at least n buckets, using hf as the hash function, eq as the key equality predicate, a as the allocator and a maximum load factor of 1.0 and inserts the elements from [f, l) into it.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<constructor >
<parameter >
<paramtype > unordered_multimap const& </paramtype>
</parameter>
<description >
2007-08-27 23:00:30 +00:00
<para > The copy constructor. Copies the contained elements, hash function, predicate, maximum load factor and allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</constructor>
<destructor >
</destructor>
<method name= "operator=" >
<parameter >
<paramtype > unordered_multimap const& </paramtype>
</parameter>
<type > unordered_multimap& </type>
<description >
2007-08-27 23:00:30 +00:00
<para > The assignment operator. Copies the contained elements, hash function, predicate and maximum load factor but not the allocator.</para>
2007-08-27 22:48:13 +00:00
</description>
</method>
<method name= "get_allocator" cv= "const" >
<type > allocator_type</type>
</method>
<method-group name= "size and capacity" >
<method name= "empty" cv= "const" >
<type > bool</type>
<returns >
<code > <methodname > size</methodname> () == 0</code>
</returns>
</method>
<method name= "size" cv= "const" >
<type > size_type</type>
<returns >
<code > std::distance(<methodname > begin</methodname> (), <methodname > end</methodname> ())</code>
</returns>
</method>
<method name= "max_size" cv= "const" >
<type > size_type</type>
<returns > <code > <methodname > size</methodname> ()</code> of the largest possible container.
</returns>
</method>
</method-group>
<method-group name= "iterators" >
<overloaded-method name= "begin" >
<signature > <type > iterator</type> </signature>
<signature cv= "const" > <type > const_iterator</type> </signature>
<returns > An iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<type > iterator</type>
</signature>
<signature cv= "const" >
<type > const_iterator</type>
</signature>
<returns > An iterator which refers to the past-the-end value for the container.
</returns>
</overloaded-method>
<method name= "cbegin" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator referring to the first element of the container, or if the container is empty the past-the-end value for the container.
</returns>
</method>
<method name= "cend" cv= "const" >
<type > const_iterator</type>
<returns > A constant iterator which refers to the past-the-end value for the container.
</returns>
</method>
</method-group>
<method-group name= "modifiers" >
<method name= "insert" >
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > iterator</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to the inserted element.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "insert" >
<parameter name= "hint" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "obj" >
<paramtype > value_type const& </paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts obj in the container.</para>
<para > hint is a suggestion to where the element should be inserted.</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to the inserted element.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
2007-08-27 23:00:30 +00:00
<para > If an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > The standard is fairly vague on the meaning of the hint. But the only practical way to use it, and the only way that Boost.Unordered supports is to point to an existing element with the same key. </para>
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "insert" >
<template >
<template-type-parameter name= "InputIterator" >
</template-type-parameter>
</template>
<parameter name= "first" >
<paramtype > InputIterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > InputIterator</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Inserts a range of elements into the container. </para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > When inserting a single element, if an exception is thrown by an operation other than a call to <code > hasher</code> the function has no effect.</para>
2007-08-27 22:48:13 +00:00
</throws>
<notes >
2007-08-27 23:00:30 +00:00
<para > Can invalidate iterators, but only if the insert causes the load factor to be greater to or equal to the maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</notes>
</method>
2007-10-11 22:47:17 +00:00
<method name= "erase" >
<parameter name= "position" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase the element pointed to by <code > position</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following <code > position</code> before the erasure.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
2007-08-27 22:48:13 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erase all elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</description>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements erased.</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
<method name= "erase" >
<parameter name= "first" >
<paramtype > const_iterator</paramtype>
</parameter>
<parameter name= "last" >
<paramtype > const_iterator</paramtype>
</parameter>
<type > iterator</type>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<description >
2007-08-27 23:00:30 +00:00
<para > Erases the elements in the range from <code > first</code> to <code > last</code> .</para>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
</description>
2007-08-27 22:48:13 +00:00
<returns >
2007-08-27 23:00:30 +00:00
<para > The iterator following the erased elements - i.e. <code > last</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<throws >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<para > Only throws an exception if it is thrown by <code > hasher</code> or <code > key_equal</code> .</para>
<para > In this implementation, this overload doesn't call either function object's methods so it is no throw, but this might not be true in other implementations.</para>
2007-08-27 22:48:13 +00:00
</throws>
2007-10-11 22:47:17 +00:00
</method>
2007-08-27 22:48:13 +00:00
<method name= "clear" >
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Erases all elements in the container.</para>
2007-08-27 22:48:13 +00:00
</description>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > <code > <methodname > size</methodname> () == 0</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
<throws >
2007-08-27 23:00:30 +00:00
<para > Never throws an exception.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
<method name= "swap" >
<parameter >
<paramtype > unordered_multimap& </paramtype>
</parameter>
<type > void</type>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > key_equal</code> or <code > hasher</code> .</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
<method-group name= "observers" >
<method name= "hash_function" cv= "const" >
<type > hasher</type>
<returns > The container's hash function.
</returns>
</method>
<method name= "key_eq" cv= "const" >
<type > key_equal</type>
<returns > The container's key equality predicate.
</returns>
</method>
</method-group>
<method-group name= "lookup" >
<overloaded-method name= "find" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > iterator</type>
</signature>
<returns >
2007-08-27 23:00:30 +00:00
<para > An iterator pointing to an element with key equivalent to <code > k</code> , or <code > b.end()</code> if no such element exists.</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<method name= "count" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements with key equivalent to <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<overloaded-method name= "equal_range" >
<signature >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > std::pair< iterator, iterator> </type>
</signature>
<signature cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<type > std::pair< const_iterator, const_iterator> </type>
2007-08-27 22:48:13 +00:00
</signature>
<returns >
2007-08-27 23:01:34 +00:00
<para > A range containing all elements with key equivalent to <code > k</code> .
2007-08-27 23:00:30 +00:00
If the container doesn't container any such elements, returns
<code > <functionname > std::make_pair</functionname> (<methodname > b.end</methodname> (),<methodname > b.end</methodname> ())</code> .
</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
</method-group>
<method-group name= "bucket interface" >
<method name= "bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_bucket_count" cv= "const" >
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > An upper bound on the number of buckets.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket_size" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > size_type</type>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n < <methodname > bucket_count</methodname> ()</code> </para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > The number of elements in bucket <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "bucket" cv= "const" >
<parameter name= "k" >
<paramtype > key_type const& </paramtype>
</parameter>
<type > size_type</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The index of the bucket which would contain an element with key <code > k</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
<postconditions >
2007-08-27 23:00:30 +00:00
<para > The return value is less than <code > bucket_count()</code> </para>
2007-08-27 22:48:13 +00:00
</postconditions>
</method>
<overloaded-method name= "begin" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the first element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
<overloaded-method name= "end" >
<signature >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > local_iterator</type>
</signature>
<signature cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
</signature>
<requires >
2007-08-27 23:00:30 +00:00
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
2007-08-27 22:48:13 +00:00
</requires>
<returns >
2007-08-27 23:00:30 +00:00
<para > A local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
2007-08-27 22:48:13 +00:00
</returns>
</overloaded-method>
2007-12-19 23:13:20 +00:00
<method name= "cbegin" cv= "const" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the first element in the bucket with index <code > n</code> .</para>
</returns>
</method>
<method name= "cend" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > const_local_iterator</type>
<requires >
<para > <code > n</code> shall be in the range <code > [0, bucket_count())</code> .</para>
</requires>
<returns >
<para > A constant local iterator pointing the 'one past the end' element in the bucket with index <code > n</code> .</para>
</returns>
</method>
2007-08-27 22:48:13 +00:00
</method-group>
<method-group name= "hash policy" >
<method name= "load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > The average number of elements per bucket.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" cv= "const" >
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Returns the current maximum load factor.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "max_load_factor" >
<parameter name= "z" >
<paramtype > float</paramtype>
</parameter>
<type > float</type>
<returns >
2007-08-27 23:00:30 +00:00
<para > Changes the container's maximum load factor, using <code > z</code> as a hint.</para>
2007-08-27 22:48:13 +00:00
</returns>
</method>
<method name= "rehash" >
<parameter name= "n" >
<paramtype > size_type</paramtype>
</parameter>
<type > void</type>
<description >
2007-08-27 23:00:30 +00:00
<para > Changes the number of buckets so that there at least <code > n</code> buckets, and so that the load factor is less than the maximum load factor.</para>
<para > Invalidates iterators, and changes the order of elements</para>
2007-08-27 22:48:13 +00:00
</description>
<throws >
2007-08-27 23:00:30 +00:00
<para > The function has no effect if an exception is thrown, unless it is thrown by the container's hash function or comparison function.</para>
2007-08-27 22:48:13 +00:00
</throws>
</method>
</method-group>
2007-10-29 20:20:58 +00:00
<free-function-group name= "swap" >
<function name= "swap" >
<template >
<template-type-parameter name= "Key" >
</template-type-parameter>
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<template-type-parameter name= "Mapped" >
2007-10-29 20:20:58 +00:00
</template-type-parameter>
<template-type-parameter name= "Hash" >
</template-type-parameter>
<template-type-parameter name= "Pred" >
</template-type-parameter>
<template-type-parameter name= "Alloc" >
</template-type-parameter>
</template>
<parameter name= "x" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_multimap< Key, Mapped, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<parameter name= "y" >
Merged revisions 41822-41992,41994-42101 via svnmerge from
https://svn.boost.org/svn/boost/branches/unordered/dev
........
r41822 | danieljames | 2007-12-07 12:51:54 +0000 (Fri, 07 Dec 2007) | 5 lines
Change the macros to meet boost guidelines.
I should really have done this before the review. At least it'll give them
something to say.
........
r41928 | danieljames | 2007-12-09 19:23:27 +0000 (Sun, 09 Dec 2007) | 1 line
Add some parameters to standalone documentation build.
........
r41929 | danieljames | 2007-12-09 19:24:07 +0000 (Sun, 09 Dec 2007) | 1 line
An extra rehash test for inserting a range.
........
r41930 | danieljames | 2007-12-09 19:24:52 +0000 (Sun, 09 Dec 2007) | 1 line
get_for_erase can be static because all the required information is in the iterator.
........
r41931 | danieljames | 2007-12-09 19:31:00 +0000 (Sun, 09 Dec 2007) | 1 line
ADL doesn't seem to be working properly on Visual C++ 7.1 when calling swap, so workaround this in the compile tests.
........
r41932 | danieljames | 2007-12-09 19:44:46 +0000 (Sun, 09 Dec 2007) | 1 line
Try to make the erase exception requirements a little clearer.
........
r41933 | danieljames | 2007-12-09 19:52:50 +0000 (Sun, 09 Dec 2007) | 1 line
Hopefully clearer comparison of accessors for comparison/hash function objects.
........
r41943 | danieljames | 2007-12-10 00:03:53 +0000 (Mon, 10 Dec 2007) | 1 line
Fix a typo.
........
r41951 | danieljames | 2007-12-10 11:08:02 +0000 (Mon, 10 Dec 2007) | 1 line
Use the locale in the case insensitive comparison, I really should add a test for this.
........
r41994 | danieljames | 2007-12-13 00:26:05 +0000 (Thu, 13 Dec 2007) | 3 lines
Hervé Brönnimann's improved explanation of the formula for avoiding
invalidating iterators.
........
r41995 | danieljames | 2007-12-13 00:30:46 +0000 (Thu, 13 Dec 2007) | 4 lines
Explicity use the classic locale in the case insensitive example. I could make
the locale a member, but that would make the example longer. Also, this would be
a good place to put a note about the need for constant function objects.
........
r41996 | danieljames | 2007-12-13 00:31:55 +0000 (Thu, 13 Dec 2007) | 1 line
Pull the point examples out into test files - fixing a few bugs in the process.
........
r41997 | danieljames | 2007-12-13 00:41:30 +0000 (Thu, 13 Dec 2007) | 3 lines
A few reference links for boost::hash, it might be better to link to the
first page of the Boost.Hash documentation though.
........
r42092 | danieljames | 2007-12-16 10:07:27 +0000 (Sun, 16 Dec 2007) | 2 lines
Fix some typos, and use American spelling.
........
r42093 | danieljames | 2007-12-16 10:11:00 +0000 (Sun, 16 Dec 2007) | 1 line
Small documentation tweak.
........
r42096 | danieljames | 2007-12-16 10:17:03 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some reference documentation errors.
........
r42097 | danieljames | 2007-12-16 10:28:08 +0000 (Sun, 16 Dec 2007) | 1 line
Document the explicit constructors.
........
r42098 | danieljames | 2007-12-16 10:47:13 +0000 (Sun, 16 Dec 2007) | 1 line
Try to make the active issues and proposals a little clearer - including more obvious links to the relevant papers.
........
r42099 | danieljames | 2007-12-16 10:52:30 +0000 (Sun, 16 Dec 2007) | 1 line
Fix some complexity errors in the comparison table.
........
r42100 | danieljames | 2007-12-16 10:59:45 +0000 (Sun, 16 Dec 2007) | 1 line
Use Mapped instead of T in the documentation.
........
r42101 | danieljames | 2007-12-16 11:06:16 +0000 (Sun, 16 Dec 2007) | 1 line
Remove hard-coded length of prime numbers.
........
[SVN r42187]
2007-12-19 23:09:09 +00:00
<paramtype > unordered_multimap< Key, Mapped, Hash, Pred, Alloc> & </paramtype>
2007-10-29 20:20:58 +00:00
</parameter>
<type > void</type>
<effects >
<para > <code > x.swap(y)</code> </para>
</effects>
<throws >
2007-12-19 22:42:12 +00:00
<para > Doesn't throw an exception unless it is thrown by the copy constructor or copy assignment operator of <code > Hash</code> or <code > Pred</code> .</para>
2007-10-29 20:20:58 +00:00
</throws>
</function>
</free-function-group>
2007-08-27 22:48:13 +00:00
</class>
</namespace>
</header>
</library-reference>