mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
added documentation for initialize() policy function
[SVN r9592]
This commit is contained in:
parent
2cd1422514
commit
7f93e739fe
@ -311,13 +311,13 @@ iterator_adaptor<foo_iterator, foo_policies,
|
|||||||
<th>Required for Iterator Categories
|
<th>Required for Iterator Categories
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><tt>dereference</tt>
|
<td><tt>initialize</tt>
|
||||||
|
|
||||||
<td>returns an element of the iterator's <tt>reference</tt> type
|
<td>optionally modify base iterator during iterator construction
|
||||||
|
|
||||||
<td><tt>*p</tt>, <tt>p[n]</tt>
|
|
||||||
|
|
||||||
<td rowspan="3"><a href=
|
<td>constructors
|
||||||
|
|
||||||
|
<td rowspan="4"><a href=
|
||||||
"http://www.sgi.com/tech/stl/InputIterator.html">Input</a>/ <a href=
|
"http://www.sgi.com/tech/stl/InputIterator.html">Input</a>/ <a href=
|
||||||
"http://www.sgi.com/tech/stl/OutputIterator.html">Output</a>/ <a href=
|
"http://www.sgi.com/tech/stl/OutputIterator.html">Output</a>/ <a href=
|
||||||
"http://www.sgi.com/tech/stl/ForwardIterator.html">Forward</a>/ <a
|
"http://www.sgi.com/tech/stl/ForwardIterator.html">Forward</a>/ <a
|
||||||
@ -326,6 +326,15 @@ iterator_adaptor<foo_iterator, foo_policies,
|
|||||||
<a href="http://www.sgi.com/tech/stl/RandomAccessIterator.html">Random
|
<a href="http://www.sgi.com/tech/stl/RandomAccessIterator.html">Random
|
||||||
Access</a>
|
Access</a>
|
||||||
|
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<td><tt>dereference</tt>
|
||||||
|
|
||||||
|
<td>returns an element of the iterator's <tt>reference</tt> type
|
||||||
|
|
||||||
|
<td><tt>*p</tt>, <tt>p[n]</tt>
|
||||||
|
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><tt>equal</tt>
|
<td><tt>equal</tt>
|
||||||
|
|
||||||
@ -405,6 +414,10 @@ iterator_adaptor<foo_iterator, foo_policies,
|
|||||||
<pre>
|
<pre>
|
||||||
struct <a name="default_iterator_policies">default_iterator_policies</a>
|
struct <a name="default_iterator_policies">default_iterator_policies</a>
|
||||||
{
|
{
|
||||||
|
template <class BaseType>
|
||||||
|
void initialize(BaseType&)
|
||||||
|
{ }
|
||||||
|
|
||||||
template <class Reference, class BaseType>
|
template <class Reference, class BaseType>
|
||||||
Reference dereference(type<Reference>, const BaseType& x) const
|
Reference dereference(type<Reference>, const BaseType& x) const
|
||||||
{ return *x; }
|
{ return *x; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user