mirror of
https://github.com/boostorg/multi_array.git
synced 2026-01-25 06:22:10 +00:00
Compare commits
4 Commits
boost-1.43
...
boost-1.33
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6fa3edc852 | ||
|
|
198bbd8e1d | ||
|
|
24a7094017 | ||
|
|
49fd97b7de |
@@ -70,7 +70,7 @@ is so nonintuitive that at least one implementation erroneously assigns
|
||||
not return true references: there is the often cited example of disk-based
|
||||
collections.
|
||||
</p><p>Another example is a counting iterator, an iterator the returns a sequence of
|
||||
integers when incremented and dereferenced (see <a href="http://www.boost.org/libs/utility/counting_iterator.htm"><tt>boost::counting_iterator</tt></a>).
|
||||
integers when incremented and dereferenced (see <a href="http://www.boost.org/libs/iterator/doc/counting_iterator.html"><tt>boost::counting_iterator</tt></a>).
|
||||
There are two ways to implement this iterator, 1) make the <tt>reference</tt>
|
||||
type be a true reference (a reference to an integer data member of the counting
|
||||
iterator) or 2) make the <tt>reference</tt> type be the same as the
|
||||
@@ -79,7 +79,7 @@ iterator) or 2) make the <tt>reference</tt> type be the same as the
|
||||
2) is therefore a better choice, but then we have a counting iterator that
|
||||
cannot be a random access iterator.
|
||||
</p><p>Yet another example is a transform iterator, an iterator adaptor that applies
|
||||
a unary function object to the dereference value of the wrapped iterator (see <a href="http://www.boost.org/libs/utility/transform_iterator.htm"><tt>boost::transform_iterator</tt></a>).
|
||||
a unary function object to the dereference value of the wrapped iterator (see <a href="http://www.boost.org/libs/iterator/doc/transform_iterator.html"><tt>boost::transform_iterator</tt></a>).
|
||||
For unary functions such as <tt>std::times</tt> the return type of
|
||||
<tt>operator*</tt> clearly needs to be the <tt>result_type</tt> of the function
|
||||
object, which is typically not a reference. However, with the current iterator
|
||||
|
||||
@@ -582,7 +582,7 @@ cases can be found <a href="./test_cases.html">here</a>.
|
||||
arrays.
|
||||
|
||||
This library is analogous to
|
||||
<a href="">boost::array</a> in that it augments C style N-dimensional
|
||||
<a href="../../array/index.html">boost::array</a> in that it augments C style N-dimensional
|
||||
arrays, as <tt>boost::array</tt> does for C one-dimensional arrays.
|
||||
|
||||
|
||||
@@ -625,7 +625,7 @@ arrays, as <tt>boost::array</tt> does for C one-dimensional arrays.
|
||||
</address>
|
||||
<!-- Created: Fri Jun 29 10:53:07 EST 2001 -->
|
||||
<!-- hhmts start -->
|
||||
Last modified: Tue Sep 10 11:14:15 EST 2002
|
||||
Last modified: Wed Nov 30 23:29:03 EST 2005
|
||||
<!-- hhmts end -->
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user