2
0
mirror of https://github.com/boostorg/ublas.git synced 2026-02-13 12:52:14 +00:00

FIX The Vector Concept cannot refine Random Access Container as some Vectors don't have Random Access Iterators.

Make Vector a model of Random Access Container instead

svn path=/trunk/boost/libs/numeric/ublas/; revision=31214
This commit is contained in:
Michael Stevens
2005-10-06 19:58:39 +00:00
parent 8ab95aa641
commit 8afe83aaa5
2 changed files with 17 additions and 6 deletions

View File

@@ -18,11 +18,10 @@ Container Concepts</h1>
vectors.</p>
<h4>Refinement of</h4>
<p><a href="http://www.sgi.com/tech/stl/DefaultConstructible.html">DefaultConstructible</a>,
<a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a> and
<a href="expression_concept.htm#vector_expression">Vector Expression</a>
<a href="#vector_expression_note">[1]</a>.</p>
<h4>Associated types</h4>
<p>In addition to the types defined by <a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a> and <a href="expression_concept.htm#vector_expression">Vector Expression</a></p>
<p>In addition to the types defined by <a href="expression_concept.htm#vector_expression">Vector Expression</a></p>
<table border="1" summary="types">
<tbody>
<tr>
@@ -67,7 +66,6 @@ Dense Vector ONLY. The type of underlying storage array used to store the elemen
<h4>Definitions</h4>
<h4>Valid expressions</h4>
<p>In addition to the expressions defined in <a href="http://www.sgi.com/tech/stl/DefaultConstructible.html">DefaultConstructible</a>,
<a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a> and
<a href="expression_concept.htm#vector_expression">Vector Expression</a> the following expressions must be valid.</p>
<table border="1" summary="expressions">
<tbody>
@@ -220,7 +218,7 @@ matrices.</p>
<a href="#matrix_expression_note">[1]</a>
.</p>
<h4>Associated types</h4>
<p>In addition to the types defined by <a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a> and <a href="expression_concept.htm#matrix_expression">Matrix Expression</a></p>
<p>In addition to the types defined by <a href="expression_concept.htm#matrix_expression">Matrix Expression</a></p>
<table border="1" summary="types">
<tbody>
<tr>

View File

@@ -55,10 +55,13 @@ int main () {
</tbody>
</table>
<h4>Model of</h4>
<p><a href="container_concept.htm#vector">Vector</a> .</p>
<p><a href="container_concept.htm#vector">Vector</a>,
<a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a>
</p>
<h4>Type requirements</h4>
<p>None, except for those imposed by the requirements of <a href=
"container_concept.htm#vector">Vector</a> .</p>
"container_concept.htm#vector">Vector</a>
and <a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a>.</p>
<h4>Public base classes</h4>
<p><code>vector_container&lt;vector&lt;T, A&gt; &gt;</code></p>
<h4>Members</h4>
@@ -156,6 +159,16 @@ preseved when specified.</td>
<td>Returns the size of the <code>vector</code>.</td>
</tr>
<tr>
<td><code>size_type max_size () const</code></td>
<td><a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a></td>
<td>Returns the upper bound on the size of the <code>vector</code>.</td>
</tr>
<tr>
<td><code>bool empty () const</code></td>
<td><a href="http://www.sgi.com/tech/stl/RandomAccessContainer.html">RandomAccessContainer</a></td>
<td>Equivilent to <code>size () == 0</code>.</td>
</tr>
<tr>
<td><code>const array_type&amp; data () const</code></td>
<td><a href="container_concept.htm#vector">Vector</a></td>
<td></td>