mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
Update docs for equal_range()
to include heterogeneous overloads
This commit is contained in:
33
doc/ref.php
33
doc/ref.php
@ -1392,12 +1392,41 @@ EOL;
|
||||
</parameter>
|
||||
<type>std::pair<const_iterator, const_iterator></type>
|
||||
</signature>
|
||||
<signature>
|
||||
<template>
|
||||
<template-type-parameter name="K" />
|
||||
</template>
|
||||
<parameter name="k">
|
||||
<paramtype>K const&</paramtype>
|
||||
</parameter>
|
||||
<type>std::pair<iterator, iterator></type>
|
||||
</signature>
|
||||
<signature cv="const">
|
||||
<template>
|
||||
<template-type-parameter name="K" />
|
||||
</template>
|
||||
<parameter name="k">
|
||||
<paramtype>K const&</paramtype>
|
||||
</parameter>
|
||||
<type>std::pair<const_iterator, const_iterator></type>
|
||||
</signature>
|
||||
<returns>
|
||||
<para>A range containing all elements with key equivalent to <code>k</code>.
|
||||
If the container doesn't container any such elements, returns
|
||||
If the container doesn't contain any such elements, returns
|
||||
<code><functionname>std::make_pair</functionname>(<methodname>b.end</methodname>(),<methodname>b.end</methodname>())</code>.
|
||||
</para>
|
||||
</para>
|
||||
</returns>
|
||||
<notes>
|
||||
<para>
|
||||
The <code>template <typename K></code> overloads only participate
|
||||
in overload resolution if <code>Hash::is_transparent</code> and
|
||||
<code>Pred::is_transparent</code> are valid member typedefs. The
|
||||
library assumes that <code>Hash</code> is callable with both
|
||||
<code>K</code> and <code>Key</code> and that <code>Pred</code> is
|
||||
transparent. This enables heterogeneous lookup which avoids the cost of
|
||||
instantiating an instance of the <code>Key</code> type.
|
||||
</para>
|
||||
</notes>
|
||||
</overloaded-method>
|
||||
<?php if ($map && !$equivalent_keys): ?>
|
||||
<method name="operator[]">
|
||||
|
Reference in New Issue
Block a user