diff options
author | okellogg <okellogg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-03-24 17:11:45 +0000 |
---|---|---|
committer | okellogg <okellogg@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-03-24 17:11:45 +0000 |
commit | ec156983d2c1ea5adc99a22f7e89105d596b0b6a (patch) | |
tree | bc267bf9fab3a1ae0f7b8ed39e02278c14826ac2 /ace/Unbounded_Set.cpp | |
parent | f5bbeced261c9141ff701e2e8fb85c2e40ad306c (diff) | |
download | ATCD-ec156983d2c1ea5adc99a22f7e89105d596b0b6a.tar.gz |
ChangeLogTag:Mon Mar 24 18:03:34 CET 2003 Oliver Kellogg <oliver.kellogg@sysde.eads.net>
Diffstat (limited to 'ace/Unbounded_Set.cpp')
-rw-r--r-- | ace/Unbounded_Set.cpp | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/ace/Unbounded_Set.cpp b/ace/Unbounded_Set.cpp index cc5fc9ea0a1..b6dabe59348 100644 --- a/ace/Unbounded_Set.cpp +++ b/ace/Unbounded_Set.cpp @@ -287,20 +287,27 @@ ACE_Unbounded_Set<T>::end (void) } template <class T> void -ACE_Unbounded_Set<T>::iterator_add (void) +ACE_Unbounded_Set<T>::iterator_add (void) const { number_of_iterators_++; } template <class T> void -ACE_Unbounded_Set<T>::iterator_leave (void) +ACE_Unbounded_Set<T>::iterator_leave (void) const { - ACE_ASSERT (number_of_iterators_>0); + ACE_ASSERT (number_of_iterators_ > 0); number_of_iterators_--; - if (number_of_iterators_==0) + if (number_of_iterators_ == 0) cleanup (); } +template <class T> void +ACE_Unbounded_Set<T>::const_iterator_leave (void) const +{ + ACE_ASSERT (number_of_iterators_ > 0); + number_of_iterators_--; +} + ACE_ALLOC_HOOK_DEFINE(ACE_Unbounded_Set_Iterator) template <class T> void @@ -471,7 +478,7 @@ void ACE_Unbounded_Set_Const_Iterator<T>::operator=(const ACE_Unbounded_Set_Cons template <class T> ACE_Unbounded_Set_Const_Iterator<T>::~ACE_Unbounded_Set_Const_Iterator() { - set_->iterator_leave (); + set_->const_iterator_leave (); } template <class T> int |