]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
include/cpp-btree: add emplace_hint()
authorKefu Chai <kchai@redhat.com>
Tue, 24 Dec 2019 08:47:02 +0000 (16:47 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 24 Dec 2019 16:25:38 +0000 (00:25 +0800)
commit82665a620fee8792f4d036bca237b3e6192a8920
treedafc241248651ab2bab141f4308105183a0a58cd
parent3d6a5487578b9bb7cc00cf2b1022b5128f713c2f
include/cpp-btree: add emplace_hint()

so we can construct the value to be inserted in-place, and move it into
the tree, instead of copying it.

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