diff options
author | Fangrui Song <maskray@google.com> | 2019-06-30 09:17:59 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-06-30 09:17:59 +0000 |
commit | 2d2cb77e45d4c9ca34d05f80430e0f9404252980 (patch) | |
tree | 8bc6fe45c7e019c198c1f454b5e73fec58eb703b /llvm/lib/TextAPI/MachO/InterfaceFile.cpp | |
parent | 725a8a5dc43ff23640ca539b9b4c3f46bf549179 (diff) | |
download | bcm5719-llvm-2d2cb77e45d4c9ca34d05f80430e0f9404252980.tar.gz bcm5719-llvm-2d2cb77e45d4c9ca34d05f80430e0f9404252980.zip |
[ADT] Implement llvm::bsearch() with std::partition_point()
Summary:
Delete the begin-end form because the standard std::partition_point
can be easily used as a replacement.
The ranges-style llvm::bsearch will be renamed to llvm::partition_point
in the next clean-up patch.
The name "bsearch" doesn't meet people's expectation because in C:
> If two or more members compare equal, which member is returned is unspecified.
Reviewed By: sammccall
Differential Revision: https://reviews.llvm.org/D63718
llvm-svn: 364719
Diffstat (limited to 'llvm/lib/TextAPI/MachO/InterfaceFile.cpp')
0 files changed, 0 insertions, 0 deletions