Implement P0253R1: Fixing a design mistake in the searchers interface.
llvm-svn: 262928
diff --git a/libcxx/include/experimental/algorithm b/libcxx/include/experimental/algorithm
index ffaa793..3902111 100644
--- a/libcxx/include/experimental/algorithm
+++ b/libcxx/include/experimental/algorithm
@@ -53,7 +53,7 @@
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,