summaryrefslogtreecommitdiff
path: root/ACE/ace/Vector_T.h
diff options
context:
space:
mode:
authorFred Hornsey <hornseyf@objectcomputing.com>2018-12-21 17:11:16 -0600
committerFred Hornsey <hornseyf@objectcomputing.com>2018-12-21 17:11:16 -0600
commit38497d0e9a3ec28c47898fb6546158e54f25afca (patch)
tree640b7fb3c3cb51b3fd4f547f960a37922a8fbf69 /ACE/ace/Vector_T.h
parent10983a559cf292c3c3255c869de8d024769cbe57 (diff)
downloadATCD-38497d0e9a3ec28c47898fb6546158e54f25afca.tar.gz
Fix end() on ACE_Vector
It was based on the the base array, not the actual elements in the array.
Diffstat (limited to 'ACE/ace/Vector_T.h')
-rw-r--r--ACE/ace/Vector_T.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ACE/ace/Vector_T.h b/ACE/ace/Vector_T.h
index 13c4ba0302d..a5be43470b5 100644
--- a/ACE/ace/Vector_T.h
+++ b/ACE/ace/Vector_T.h
@@ -188,6 +188,16 @@ public:
void swap (ACE_Vector &rhs);
+ /*
+ * Implement our own end functions because Array_Base's end functions use the
+ * current capacity, not the Vector's actual element count!
+ */
+ /// C++ Standard End Iterator
+ ///{
+ typename ACE_Array_Base<T>::iterator end ();
+ typename ACE_Array_Base<T>::const_iterator end () const;
+ ///}
+
protected:
/**