commit | 27c341db41bc9df5c6f19cde65f002d6f1c2eb3c | [log] [tgz] |
---|---|---|
author | Peter Collingbourne <peter@pcc.me.uk> | Fri Jan 26 21:23:27 2018 +0000 |
committer | Peter Collingbourne <peter@pcc.me.uk> | Fri Jan 26 21:23:27 2018 +0000 |
tree | e64063652cb916a4518d1c76f0333da03bea2b00 | |
parent | 44aacb7850ffbf1be0a6b5bc9c9b6c5804fdbcaa [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 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@323563 91177308-0d34-0410-b5e6-96231b3b80d8