From 8afe83aaa5bfa47ec2e8a52434e38ac1a429e61b Mon Sep 17 00:00:00 2001
From: Michael Stevens
Date: Thu, 6 Oct 2005 19:58:39 +0000
Subject: [PATCH] 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
---
doc/container_concept.htm | 6 ++----
doc/vector.htm | 17 +++++++++++++++--
2 files changed, 17 insertions(+), 6 deletions(-)
diff --git a/doc/container_concept.htm b/doc/container_concept.htm
index 8ff80136..7625769a 100644
--- a/doc/container_concept.htm
+++ b/doc/container_concept.htm
@@ -18,11 +18,10 @@ Container Concepts
vectors.
Refinement of
DefaultConstructible,
-RandomAccessContainer and
Vector Expression
[1].
Associated types
-In addition to the types defined by RandomAccessContainer and Vector Expression
+In addition to the types defined by Vector Expression
@@ -67,7 +66,6 @@ Dense Vector ONLY. The type of underlying storage array used to store the elemen
Definitions
Valid expressions
In addition to the expressions defined in DefaultConstructible,
-RandomAccessContainer and
Vector Expression the following expressions must be valid.
@@ -220,7 +218,7 @@ matrices.
[1]
.
Associated types
-In addition to the types defined by RandomAccessContainer and Matrix Expression
+In addition to the types defined by Matrix Expression
diff --git a/doc/vector.htm b/doc/vector.htm
index 1834de4d..a07f245c 100644
--- a/doc/vector.htm
+++ b/doc/vector.htm
@@ -55,10 +55,13 @@ int main () {
Model of
-Vector .
+Vector,
+RandomAccessContainer
+
Type requirements
None, except for those imposed by the requirements of Vector .
+"container_concept.htm#vector">Vector
+and RandomAccessContainer.
Public base classes
vector_container<vector<T, A> >
Members
@@ -156,6 +159,16 @@ preseved when specified.
Returns the size of the vector. |
+size_type max_size () const |
+RandomAccessContainer |
+Returns the upper bound on the size of the vector. |
+
+
+bool empty () const |
+RandomAccessContainer |
+Equivilent to size () == 0. |
+
+
const array_type& data () const |
Vector |
|