mirror of
https://github.com/boostorg/more.git
synced 2025-03-10 11:10:25 +08:00
Added copyright and Adaptors section.
[SVN r9147]
This commit is contained in:
parent
956dd92b5e
commit
b3b516b9a4
@ -22,9 +22,11 @@
|
|||||||
|
|
||||||
<li><a href="#type_generator">Type Generators</a>
|
<li><a href="#type_generator">Type Generators</a>
|
||||||
|
|
||||||
<li><a href="#object_generator">Object Generator</a>
|
<li><a href="#object_generator">Object Generators</a>
|
||||||
|
|
||||||
<li><a href="#policies">Policies Classes</a>
|
<li><a href="#policies">Policies Classes</a>
|
||||||
|
|
||||||
|
<li><a href="#adaptors">Adaptors</a>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2><a name="traits">Traits</a></h2>
|
<h2><a name="traits">Traits</a></h2>
|
||||||
@ -167,9 +169,36 @@ void append_sequence(Container& c, Iterator start, Iterator finish)
|
|||||||
amount of code.
|
amount of code.
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<p> Andrei's description of policies describe their power as being derived
|
<p>Andrei's description of policies describe their power as being derived
|
||||||
from their granularity and orthogonality. Boost has probably diluted the
|
from their granularity and orthogonality. Boost has probably diluted the
|
||||||
distinction in the <a href="../libs/utility/iterator_adaptors.htm">Iterator
|
distinction in the <a href="../libs/utility/iterator_adaptors.htm">Iterator
|
||||||
Adaptors</a> library, where we transmit all of an adapted iterator's
|
Adaptors</a> library, where we transmit all of an adapted iterator's
|
||||||
behavior in a single policies class.
|
behavior in a single policies class.
|
||||||
|
|
||||||
|
<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>.
|
||||||
|
<hr>
|
||||||
|
|
||||||
|
<p>Revised
|
||||||
|
<!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %b %Y" startspan -->11
|
||||||
|
Feb 2001<!--webbot bot="Timestamp" endspan i-checksum="14373" -->
|
||||||
|
|
||||||
|
|
||||||
|
<p>© Copyright David Abrahams 2001. Permission to copy, use, modify,
|
||||||
|
sell and distribute this document is granted provided this copyright notice
|
||||||
|
appears in all copies. This document is provided "as is" without express or
|
||||||
|
implied warranty, and with no claim as to its suitability for any purpose.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user