Peter Collingbourne 939b16233b 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
2018-01-26 21:23:27 +00:00
..
2017-11-23 10:38:18 +00:00
2017-11-23 10:38:18 +00:00
2017-08-18 12:57:36 +00:00
2015-10-08 20:37:11 +00:00
2015-10-08 20:37:44 +00:00
2015-10-08 20:41:26 +00:00
2015-10-09 19:57:37 +00:00
2017-06-01 02:29:37 +00:00
2016-10-10 15:56:01 +00:00
2017-11-27 16:17:19 +00:00
2016-02-20 00:16:41 +00:00
2017-06-01 02:29:37 +00:00
2015-10-09 19:57:37 +00:00