diff options
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ring.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sw/inc/ring.hxx b/sw/inc/ring.hxx index bd5c6348475d..913d62a362b6 100644 --- a/sw/inc/ring.hxx +++ b/sw/inc/ring.hxx @@ -85,6 +85,9 @@ namespace sw /** @return the previous item in the ring container */ const_value_type* GetPrevInRing() const { return pPrev; } + /** @return true if and only if this item is alone in its ring */ + bool unique() const + { return algo::unique(static_cast< const_value_type* >(this)); } private: /** internal implementation class -- not for external use */ |