summaryrefslogtreecommitdiff
path: root/ace/Containers.i
diff options
context:
space:
mode:
authorirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-08 23:28:39 +0000
committerirfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-05-08 23:28:39 +0000
commitf14c161537082505933f5b92e01579b566336c29 (patch)
treeff019a5b531740517b69ca44c2d24e22c999281d /ace/Containers.i
parent5f0e472c35c7742a03a815ea499527f72c11f6f0 (diff)
downloadATCD-f14c161537082505933f5b92e01579b566336c29.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Containers.i')
-rw-r--r--ace/Containers.i28
1 files changed, 14 insertions, 14 deletions
diff --git a/ace/Containers.i b/ace/Containers.i
index 2ca3093f72c..8e43d502de1 100644
--- a/ace/Containers.i
+++ b/ace/Containers.i
@@ -24,10 +24,10 @@ ACE_Bounded_Stack<T>::push (const T &new_item)
if (this->is_full () == 0)
{
this->stack_[this->top_++] = new_item;
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T> ACE_INLINE int
@@ -37,10 +37,10 @@ ACE_Bounded_Stack<T>::pop (T &item)
if (this->is_empty () == 0)
{
item = this->stack_[--this->top_];
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T> ACE_INLINE int
@@ -50,10 +50,10 @@ ACE_Bounded_Stack<T>::top (T &item) const
if (this->is_empty () == 0)
{
item = this->stack_[this->top_ - 1];
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T> ACE_INLINE size_t
@@ -85,10 +85,10 @@ ACE_Fixed_Stack<T, SIZE>::push (const T &new_item)
if (this->is_full () == 0)
{
this->stack_[this->top_++] = new_item;
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T, size_t SIZE> ACE_INLINE int
@@ -98,10 +98,10 @@ ACE_Fixed_Stack<T, SIZE>::pop (T &item)
if (this->is_empty () == 0)
{
item = this->stack_[--this->top_];
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T, size_t SIZE> ACE_INLINE int
@@ -111,10 +111,10 @@ ACE_Fixed_Stack<T, SIZE>::top (T &item) const
if (this->is_empty () == 0)
{
item = this->stack_[this->top_ - 1];
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T, size_t SIZE> ACE_INLINE size_t
@@ -139,10 +139,10 @@ ACE_Unbounded_Stack<T>::top (T &item) const
if (this->is_empty () == 0)
{
item = this->head_->next_->item_;
- return 1;
+ return 0;
}
else
- return 0;
+ return -1;
}
template <class T> ACE_INLINE int