commit | 939b16233b20c745db4a762b1112fa071a08ef91 | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <[email protected]> | Fri Jan 26 21:23:27 2018 |
committer | Peter Collingbourne <[email protected]> | Fri Jan 26 21:23:27 2018 |
tree | 8b5902db8605718b9e3229957cbce91dad76b8b7 | |
parent | d4273abb69e487883a612d49025dda2fb40322cd [diff] |
Fix the BinaryPredicate form of std::is_permutation to not rely on operator== According to [1], forms 2 and 4 of std::is_permutation should use the passed in binary predicate to compare elements. operator== should only be used for forms 1 and 3 which do not take a binary predicate. This CL fixes forms 2 and 4 which relied on operator== for some comparisons. [1] http://en.cppreference.com/w/cpp/algorithm/is_permutation Patch by Thomas Anderson! Differential Revision: https://reviews.llvm.org/D42518 llvm-svn: 323563