From 6bc47eb900da4975ee4c79bf8569ae277c40500f Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Mon, 9 Mar 2015 21:29:01 -0400 Subject: [PATCH] xlist: add const versions of front / back Signed-off-by: Jason Dillaman --- src/include/xlist.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/include/xlist.h b/src/include/xlist.h index 1cbadc0262e32..dcde2250d054f 100644 --- a/src/include/xlist.h +++ b/src/include/xlist.h @@ -137,7 +137,10 @@ public: } T front() { return static_cast(_front->_item); } + const T front() const { return static_cast(_front->_item); } + T back() { return static_cast(_back->_item); } + const T back() const { return static_cast(_back->_item); } void pop_front() { assert(!empty()); -- 2.39.5