From 372323d6e6699be642557eeb40d4870f2043b85b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 6 Oct 2008 02:00:08 +0000 Subject: Add front() method ala std::list. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1621 a436a847-0d15-0410-975c-d299462d15a1 --- raul/List.hpp | 3 +++ 1 file changed, 3 insertions(+) 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 _head; AtomicPtr _tail; ///< writer only -- cgit v1.2.1