diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-22 05:10:33 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1996-11-22 05:10:33 +0000 |
commit | 2f5432a85a66c5f618cdaf8032f13be787311a31 (patch) | |
tree | 5ece8e95375cf7088ce6633c23421ceaaab9b039 /ace/Stack.h | |
parent | 88aa3350698954b097db8533a892fb45f6e59149 (diff) | |
download | ATCD-2f5432a85a66c5f618cdaf8032f13be787311a31.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Stack.h')
-rw-r--r-- | ace/Stack.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ace/Stack.h b/ace/Stack.h index 6b7e9ad7ed8..3b8e85a6ecd 100644 --- a/ace/Stack.h +++ b/ace/Stack.h @@ -240,9 +240,14 @@ public: // construction. int enqueue (const TYPE &new_item); - // Returns 0 on success -1 on failure. + // Addes <new_item> to the queue. Returns 0 on success -1 on failure. int dequeue (TYPE &item); + // Removes and returns the first <item> on the queue. Returns 0 on + // success -1 if nothing was found. + + int peek (TYPE &item); + // Returns the first <item> on the queue without removing it. // Returns 0 on success -1 if nothing was found. int size (void) const; |