]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
include/interval_set: use map::rbegin() for accessing the last element
authorKefu Chai <kchai@redhat.com>
Mon, 21 Dec 2020 04:34:37 +0000 (12:34 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 21 Dec 2020 04:34:51 +0000 (12:34 +0800)
commita45237c12b758dc66180ff23ebd6c90ac2541f0e
treef6124f186ba02e218717a04ee9722a3e609d73ae
parent7cbc54096d8b65daee70367faf8123f864b9d031
include/interval_set: use map::rbegin() for accessing the last element

better than

p = end();
p--;

more concise this way.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/interval_set.h