aboutsummaryrefslogtreecommitdiff
path: root/src/stack.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/stack.h')
-rw-r--r--src/stack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/stack.h b/src/stack.h
index 99ce6e8..bbc12f4 100644
--- a/src/stack.h
+++ b/src/stack.h
@@ -64,6 +64,12 @@ namespace Bu
64 return ret; 64 return ret;
65 } 65 }
66 66
67 void clear()
68 {
69 while( !isEmpty() )
70 pop();
71 }
72
67 bool isEmpty() 73 bool isEmpty()
68 { 74 {
69 return pTop == NULL; 75 return pTop == NULL;