mirror of
https://github.com/boostorg/unordered.git
synced 2025-11-02 16:51:39 +01:00
Merge: Support for cbegin(n), cend(n).
[SVN r42188]
This commit is contained in:
@@ -137,6 +137,12 @@ of elements with equivalent keys (i.e. if they're stable under `insert` and `era
|
||||
This is [@http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#518 issue 581].
|
||||
The current proposal is that insert, erase and rehash are stable - so they are here.
|
||||
|
||||
[h3 const_local_iterator cbegin, cend missing from TR1]
|
||||
|
||||
[@http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2482.html#691
|
||||
Issue 691] is that `cbegin` and `cend` are missing for local iterators.
|
||||
The current resolution is that they'll be added, so I've added them.
|
||||
|
||||
[h2 Future Developments]
|
||||
|
||||
[h3 Support for `emplace`]
|
||||
|
||||
96
doc/ref.xml
96
doc/ref.xml
@@ -526,6 +526,30 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
<para>A local iterator pointing the 'one past the end' element in the bucket with index <code>n</code>.</para>
|
||||
</returns>
|
||||
</overloaded-method>
|
||||
<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>
|
||||
</method-group>
|
||||
<method-group name="hash policy">
|
||||
<method name="load_factor" cv="const">
|
||||
@@ -1105,6 +1129,30 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
<para>A local iterator pointing the 'one past the end' element in the bucket with index <code>n</code>.</para>
|
||||
</returns>
|
||||
</overloaded-method>
|
||||
<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>
|
||||
</method-group>
|
||||
<method-group name="hash policy">
|
||||
<method name="load_factor" cv="const">
|
||||
@@ -1735,6 +1783,30 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
<para>A local iterator pointing the 'one past the end' element in the bucket with index <code>n</code>.</para>
|
||||
</returns>
|
||||
</overloaded-method>
|
||||
<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>
|
||||
</method-group>
|
||||
<method-group name="hash policy">
|
||||
<method name="load_factor" cv="const">
|
||||
@@ -2324,6 +2396,30 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
<para>A local iterator pointing the 'one past the end' element in the bucket with index <code>n</code>.</para>
|
||||
</returns>
|
||||
</overloaded-method>
|
||||
<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>
|
||||
</method-group>
|
||||
<method-group name="hash policy">
|
||||
<method name="load_factor" cv="const">
|
||||
|
||||
Reference in New Issue
Block a user