summaryrefslogtreecommitdiffstats
path: root/raul
diff options
context:
space:
mode:
Diffstat (limited to 'raul')
-rw-r--r--raul/List.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/raul/List.hpp b/raul/List.hpp
index 5e56072..45e1101 100644
--- a/raul/List.hpp
+++ b/raul/List.hpp
@@ -144,6 +144,9 @@ public:
const_iterator begin() const;
const iterator end() const;
+ T& front() { return *begin(); }
+ const T& front() const { return *begin(); }
+
private:
AtomicPtr<Node> _head;
AtomicPtr<Node> _tail; ///< writer only