From: Jason Dillaman Date: Tue, 10 Mar 2015 01:29:01 +0000 (-0400) Subject: xlist: add const versions of front / back X-Git-Tag: v0.94~47^2~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6bc47eb900da4975ee4c79bf8569ae277c40500f;p=ceph.git xlist: add const versions of front / back Signed-off-by: Jason Dillaman --- diff --git a/src/include/xlist.h b/src/include/xlist.h index 1cbadc0262e3..dcde2250d054 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());