diff options
author | Marshall Clow <mclow.lists@gmail.com> | 2016-03-08 15:12:52 +0000 |
---|---|---|
committer | Marshall Clow <mclow.lists@gmail.com> | 2016-03-08 15:12:52 +0000 |
commit | 28cc4dde490655c2bc88d0328c73ed33615cc2a8 (patch) | |
tree | 919d1925993ad991d840091dbd725af54a649225 /libcxx/include/experimental/algorithm | |
parent | facd697007d949d4e5696b093cfe193daa955727 (diff) | |
download | bcm5719-llvm-28cc4dde490655c2bc88d0328c73ed33615cc2a8.tar.gz bcm5719-llvm-28cc4dde490655c2bc88d0328c73ed33615cc2a8.zip |
Implement P0253R1: Fixing a design mistake in the searchers interface.
llvm-svn: 262928
Diffstat (limited to 'libcxx/include/experimental/algorithm')
-rw-r--r-- | libcxx/include/experimental/algorithm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/experimental/algorithm b/libcxx/include/experimental/algorithm index ffaa793b6d4..3902111c54e 100644 --- a/libcxx/include/experimental/algorithm +++ b/libcxx/include/experimental/algorithm @@ -53,7 +53,7 @@ _LIBCPP_BEGIN_NAMESPACE_LFTS template <class _ForwardIterator, class _Searcher> _LIBCPP_INLINE_VISIBILITY _ForwardIterator search(_ForwardIterator __f, _ForwardIterator __l, const _Searcher &__s) -{ return __s(__f, __l); } +{ return __s(__f, __l).first; } template <class _PopulationIterator, class _SampleIterator, class _Distance, |