<metaname="author"content="David Abrahams, Jeremy Siek, Thomas Witt"/>
<metaname="organization"content="Boost Consulting, Indiana University Open Systems Lab, University of Hanover Institute for Transport Railway Operation and Construction"/>
<td><aclass="first reference"href="http://www.boost-consulting.com">Boost Consulting</a>, Indiana University <aclass="reference"href="http://www.osl.iu.edu">Open Systems
Lab</a>, University of Hanover <aclass="last reference"href="http://www.ive.uni-hannover.de">Institute for Transport
<p>The <ttclass="literal"><spanclass="pre">Iterator</span></tt> argument shall meet the requirements of Readable
Iterator. The <ttclass="literal"><spanclass="pre">CategoryOrTraversal</span></tt> argument shall be one of the
standard iterator tags or <ttclass="literal"><spanclass="pre">use_default</span></tt>. If <ttclass="literal"><spanclass="pre">CategoryOrTraversal</span></tt>
is an iterator tag, the template parameter <ttclass="literal"><spanclass="pre">Iterator</span></tt> argument shall
meet the traversal requirements corresponding to the iterator tag.</p>
<p>The expression <ttclass="literal"><spanclass="pre">*v</span></tt>, where <ttclass="literal"><spanclass="pre">v</span></tt> is an object of type
<ttclass="literal"><spanclass="pre">iterator_traits<Iterator>::value_type</span></tt>, must be a valid expression
and must be convertible to <ttclass="literal"><spanclass="pre">indirect_iterator::reference</span></tt>. Also
<ttclass="literal"><spanclass="pre">indirect_iterator::reference</span></tt> must be convertible to
<ttclass="literal"><spanclass="pre">indirect_iterator::value</span></tt>. There are further requirements on the
<ttclass="literal"><spanclass="pre">iterator_traits<Iterator>::value_type</span></tt> if the <ttclass="literal"><spanclass="pre">Value</span></tt> parameter
is not <ttclass="literal"><spanclass="pre">use_default</span></tt>, as implied by the algorithm for deducing the
default for the <ttclass="literal"><spanclass="pre">value_type</span></tt> member.</p>
<p>If <ttclass="literal"><spanclass="pre">CategoryOrTraversal</span></tt> is a standard iterator tag,
<ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> is a model of the iterator concept corresponding
to the tag, otherwise <ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> satisfies the requirements
of the most refined standard traversal concept that is satisfied by
the <ttclass="literal"><spanclass="pre">Iterator</span></tt> argument.</p>
<p><ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> models Readable Iterator. If
<ttclass="literal"><spanclass="pre">indirect_iterator::reference(*v)</span><spanclass="pre">=</span><spanclass="pre">t</span></tt> is a valid expression (where
<ttclass="literal"><spanclass="pre">t</span></tt> is an object of type <ttclass="literal"><spanclass="pre">indirect_iterator::value_type</span></tt>) then
<ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> models Writable Iterator. If
<ttclass="literal"><spanclass="pre">indirect_iterator::reference</span></tt> is a reference then
<trclass="field"><thclass="field-name">Requires:</th><tdclass="field-body"><ttclass="literal"><spanclass="pre">Iterator</span></tt> must be Default Constructible.</td>
<trclass="field"><thclass="field-name">Returns:</th><tdclass="field-body">An instance of <ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> with
a default-constructed <ttclass="literal"><spanclass="pre">iterator_adaptor</span></tt> subobject.</td>
<trclass="field"><thclass="field-name">Returns:</th><tdclass="field-body">An instance of <ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> with
the <ttclass="literal"><spanclass="pre">iterator_adaptor</span></tt> subobject copy constructed from <ttclass="literal"><spanclass="pre">x</span></tt>.</td>
<trclass="field"><thclass="field-name">Requires:</th><tdclass="field-body"><ttclass="literal"><spanclass="pre">Iterator2</span></tt> is implicitly convertible to <ttclass="literal"><spanclass="pre">Iterator</span></tt>.</td>
<trclass="field"><thclass="field-name">Returns:</th><tdclass="field-body">An instance of <ttclass="literal"><spanclass="pre">indirect_iterator</span></tt> whose
<ttclass="literal"><spanclass="pre">iterator_adaptor</span></tt> subobject is constructed from <ttclass="literal"><spanclass="pre">y.base()</span></tt>.</td>