summaryrefslogtreecommitdiff
path: root/ucoo/utils/fifo.tcc
diff options
context:
space:
mode:
Diffstat (limited to 'ucoo/utils/fifo.tcc')
-rw-r--r--ucoo/utils/fifo.tcc8
1 files changed, 8 insertions, 0 deletions
diff --git a/ucoo/utils/fifo.tcc b/ucoo/utils/fifo.tcc
index be8f896..9612605 100644
--- a/ucoo/utils/fifo.tcc
+++ b/ucoo/utils/fifo.tcc
@@ -35,6 +35,14 @@ Fifo<T, size>::Fifo ()
}
template<typename T, int size>
+T &
+Fifo<T, size>::top ()
+{
+ assert (head_ != tail_);
+ return buffer_[head_];
+}
+
+template<typename T, int size>
inline T
Fifo<T, size>::pop ()
{