diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-10-28 23:55:10 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2005-10-28 23:55:10 +0000 |
commit | 29ab9ab0e5f3d97107bb5c2bf0b1aa78005a3efc (patch) | |
tree | 72b3ef7a314c64d03b5b4aced6c03ae96dd6a362 /ace/Vector_T.h | |
parent | 1f511e649773269c66d39e615cd7de74a845063c (diff) | |
download | ATCD-29ab9ab0e5f3d97107bb5c2bf0b1aa78005a3efc.tar.gz |
ChangeLogTag:Fri Oct 28 00:01:06 2005 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Vector_T.h')
-rw-r--r-- | ace/Vector_T.h | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/ace/Vector_T.h b/ace/Vector_T.h index c6e5b60b074..b82ea62b90e 100644 --- a/ace/Vector_T.h +++ b/ace/Vector_T.h @@ -22,10 +22,12 @@ # pragma once #endif /* ACE_LACKS_PRAGMA_ONCE */ +ACE_BEGIN_VERSIONED_NAMESPACE_DECL + /* * Default size for an ACE_Vector. */ -const size_t ACE_VECTOR_DEFAULT_SIZE = 32; +static const size_t ACE_VECTOR_DEFAULT_SIZE = 32; // Forward declaration. template <class T, size_t DEFAULT_SIZE> class ACE_Vector_Iterator; @@ -83,7 +85,7 @@ public: * default ACE allocator is used */ ACE_Vector (const size_t init_size = DEFAULT_SIZE, - ACE_Allocator* alloc = 0); + ACE_Allocator* alloc = 0); /** * Destructor. @@ -128,7 +130,7 @@ public: * initialization clause for this parameter). */ void resize (const size_t new_size, - const T& t); + const T& t); /** * Appends a new element to the vector ("push back"). If the @@ -222,9 +224,9 @@ protected: */ template<class T> int compare (const ACE_Vector<T>& v1, - const ACE_Vector<T>& v2, - const size_t from_ndx, - const size_t to_ndx); + const ACE_Vector<T>& v2, + const size_t from_ndx, + const size_t to_ndx); /** * Does a partial comparison of two vectors in the range of @@ -244,9 +246,9 @@ int compare (const ACE_Vector<T>& v1, template<class T> int partial_compare (const ACE_Vector<T>& v1, - const ACE_Vector<T>& v2, - const size_t from_ndx, - const size_t to_ndx); + const ACE_Vector<T>& v2, + const size_t from_ndx, + const size_t to_ndx); #endif /* 0 */ // **************************************************************** @@ -293,6 +295,8 @@ private: ACE_Vector<T, DEFAULT_SIZE> &vector_; }; +ACE_END_VERSIONED_NAMESPACE_DECL + #if defined (__ACE_INLINE__) #include "ace/Vector_T.inl" #endif /* __ACE_INLINE__ */ |