]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
sharedptr_registry: add a variant of get_next() and the empty() method
authorLoic Dachary <loic@dachary.org>
Mon, 12 Aug 2013 12:05:38 +0000 (14:05 +0200)
committerLoic Dachary <loic@dachary.org>
Thu, 22 Aug 2013 00:10:58 +0000 (02:10 +0200)
commitbe04918d4446a7e4ab997e255db6448db749c2a5
tree5ba87a7c76317e442f6698152a0b685380304eaf
parent17859e147743fde5e160ad951d33afa57556f9b8
sharedptr_registry: add a variant of get_next() and the empty() method

The SharedPtrRegistry::get_next() method with a value of type VPtr
instead of V is added because it is sometime more convenient to not
copy the value when walking the registry. The
SharedPtrRegistry::empty() predicate method is added.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/common/sharedptr_registry.hpp