moved adaptors section up

[SVN r9191]
This commit is contained in:
Jeremy Siek 2001-02-13 17:50:49 +00:00
parent ca9a32992e
commit 56201f5371

View file

@ -30,13 +30,13 @@
<li><a href="#tag_dispatching">Tag Dispatching</a>
<li><a href="#adaptors">Adaptors</a>
<li><a href="#type_generator">Type Generators</a>
<li><a href="#object_generator">Object Generators</a>
<li><a href="#policies">Policies Classes</a>
<li><a href="#adaptors">Adaptors</a>
</ul>
@ -292,6 +292,22 @@ namespace std {
</pre>
</blockquote>
<h2><a name="adaptors">Adaptors</a></h2>
<p>An <i>adaptor</i> is a class template which builds on another type or
types to provide a new interface or behavioral variant. Examples of
standard adaptors are <a href=
"http://www.sgi.com/tech/stl/ReverseIterator.html">std::reverse_iterator</a>,
which adapts an iterator type by reversing its motion upon
increment/decrement, and <a href=
"http://www.sgi.com/tech/stl/stack.html">std::stack</a>, which adapts a
container to provide a simple stack interface.
<p>A more comprehensive review of the adaptors in the standard can be found
<a href=
"http://www.cs.rpi.edu/~wiseb/xrds/ovp2-3b.html#SECTION00015000000000000000">
here</a>.
<h2><a name="type_generator">Type Generators</a></h2>
<p>A <i>type generator</i> is a template whose only purpose is to
@ -410,22 +426,6 @@ void append_sequence(Container&amp; c, Iterator start, Iterator finish)
<a
href="http://www.dinkumware.com/htm_cpl/string2.html#basic_string">std::basic_string</a>.
<h2><a name="adaptors">Adaptors</a></h2>
<p>An <i>adaptor</i> is a class template which builds on another type or
types to provide a new interface or behavioral variant. Examples of
standard adaptors are <a href=
"http://www.sgi.com/tech/stl/ReverseIterator.html">std::reverse_iterator</a>,
which adapts an iterator type by reversing its motion upon
increment/decrement, and <a href=
"http://www.sgi.com/tech/stl/stack.html">std::stack</a>, which adapts a
container to provide a simple stack interface.
<p>A more comprehensive review of the adaptors in the standard can be found
<a href=
"http://www.cs.rpi.edu/~wiseb/xrds/ovp2-3b.html#SECTION00015000000000000000">
here</a>.
<h2>Notes</h2>
<a name="1">[1]</a> Type generators are a workaround for the lack