Remove duplicates during bulk insertion.
authorMark Logan <mlogan@fb.com>
Thu, 23 Feb 2017 20:21:31 +0000 (12:21 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 23 Feb 2017 20:35:32 +0000 (12:35 -0800)
commit3900132e235520bee366c554279af09ca4208667
tree072b79cf2721382ddaa04f83c634a61d481a034d
parent68493524ff3e8d85e6843ea5527cbbef26d138f9
Remove duplicates during bulk insertion.

Summary:
antonl noticed that bulk_insert doesn't remove duplicates.
We now run a std::unique() pass after merging.

Reviewed By: yfeldblum

Differential Revision: D4595304

fbshipit-source-id: 538364150aeea64b95488da158c09e07a6597e7c
folly/sorted_vector_types.h
folly/test/sorted_vector_test.cpp