summaryrefslogtreecommitdiff
path: root/boost/numeric/ublas/vector_proxy.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/numeric/ublas/vector_proxy.hpp')
-rw-r--r--boost/numeric/ublas/vector_proxy.hpp54
1 files changed, 52 insertions, 2 deletions
diff --git a/boost/numeric/ublas/vector_proxy.hpp b/boost/numeric/ublas/vector_proxy.hpp
index d6e2b77715..e3df99a382 100644
--- a/boost/numeric/ublas/vector_proxy.hpp
+++ b/boost/numeric/ublas/vector_proxy.hpp
@@ -355,9 +355,17 @@ namespace boost { namespace numeric { namespace ublas {
return find (0);
}
BOOST_UBLAS_INLINE
+ const_iterator cbegin () const {
+ return begin ();
+ }
+ BOOST_UBLAS_INLINE
const_iterator end () const {
return find (size ());
}
+ BOOST_UBLAS_INLINE
+ const_iterator cend () const {
+ return end ();
+ }
#ifndef BOOST_UBLAS_USE_INDEXED_ITERATOR
class iterator:
@@ -467,10 +475,19 @@ namespace boost { namespace numeric { namespace ublas {
return const_reverse_iterator (end ());
}
BOOST_UBLAS_INLINE
+ const_reverse_iterator crbegin () const {
+ return rbegin ();
+ }
+ BOOST_UBLAS_INLINE
const_reverse_iterator rend () const {
return const_reverse_iterator (begin ());
}
BOOST_UBLAS_INLINE
+ const_reverse_iterator crend () const {
+ return rend ();
+ }
+
+ BOOST_UBLAS_INLINE
reverse_iterator rbegin () {
return reverse_iterator (end ());
}
@@ -916,9 +933,17 @@ namespace boost { namespace numeric { namespace ublas {
return find (0);
}
BOOST_UBLAS_INLINE
+ const_iterator cbegin () const {
+ return begin ();
+ }
+ BOOST_UBLAS_INLINE
const_iterator end () const {
return find (size ());
}
+ BOOST_UBLAS_INLINE
+ const_iterator cend () const {
+ return end ();
+ }
#ifndef BOOST_UBLAS_USE_INDEXED_ITERATOR
class iterator:
@@ -1030,10 +1055,18 @@ namespace boost { namespace numeric { namespace ublas {
return const_reverse_iterator (end ());
}
BOOST_UBLAS_INLINE
+ const_reverse_iterator crbegin () const {
+ return rbegin ();
+ }
+ BOOST_UBLAS_INLINE
const_reverse_iterator rend () const {
return const_reverse_iterator (begin ());
}
BOOST_UBLAS_INLINE
+ const_reverse_iterator crend () const {
+ return rend ();
+ }
+ BOOST_UBLAS_INLINE
reverse_iterator rbegin () {
return reverse_iterator (end ());
}
@@ -1303,8 +1336,8 @@ namespace boost { namespace numeric { namespace ublas {
// Closure comparison
BOOST_UBLAS_INLINE
- bool same_closure (const vector_indirect &vr) const {
-return true;
+ bool same_closure (const vector_indirect &/*vr*/) const {
+ return true;
}
// Comparison
@@ -1461,9 +1494,17 @@ return true;
return find (0);
}
BOOST_UBLAS_INLINE
+ const_iterator cbegin () const {
+ return begin ();
+ }
+ BOOST_UBLAS_INLINE
const_iterator end () const {
return find (size ());
}
+ BOOST_UBLAS_INLINE
+ const_iterator cend () const {
+ return end ();
+ }
#ifndef BOOST_UBLAS_USE_INDEXED_ITERATOR
class iterator:
@@ -1574,10 +1615,19 @@ return true;
return const_reverse_iterator (end ());
}
BOOST_UBLAS_INLINE
+ const_reverse_iterator crbegin () const {
+ return rbegin ();
+ }
+ BOOST_UBLAS_INLINE
const_reverse_iterator rend () const {
return const_reverse_iterator (begin ());
}
BOOST_UBLAS_INLINE
+ const_reverse_iterator crend () const {
+ return rend ();
+ }
+
+ BOOST_UBLAS_INLINE
reverse_iterator rbegin () {
return reverse_iterator (end ());
}