mirror of
https://github.com/boostorg/boost.git
synced 2025-04-07 22:39:25 +00:00
moved adaptors section up
[SVN r9191]
This commit is contained in:
parent
ca9a32992e
commit
56201f5371
1 changed files with 18 additions and 18 deletions
|
@ -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& 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
|
||||
|
|
Loading…
Add table
Reference in a new issue