diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-05 05:33:22 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-05 16:10:36 +0100 |
commit | cb11bca59019682c0d7eae837e2022bfe02ddc9d (patch) | |
tree | 281129e7a3dca7c3fc8f9ce7f437e9252c7ff3a1 /sw/inc/ring.hxx | |
parent | bf449c26d0af39f3411dd527f847157eb6642733 (diff) |
add unique() function
Change-Id: I9866a2725bc74e3afd90eb5c32587beb7f4f6e2a
Diffstat (limited to 'sw/inc/ring.hxx')
-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 */ |