]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
Monitor.h: use empty() instead of !size()
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 25 Feb 2013 16:08:14 +0000 (17:08 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 26 Feb 2013 10:01:42 +0000 (11:01 +0100)
commit14716fd24bb695975636bcce6afa51c563242bf4
treef92d5676267b7593d3a905e9d197e4b7dbae6d22
parent7a81b07f2434f4e8ca9f95b7fac35116c203df81
Monitor.h: use empty() instead of !size()

Use empty() since it should be prefered as it has, following the
standard, a constant time complexity regardless of the containter
type. The same is not guaranteed for size().

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/Monitor.h