blob: eb3bad6ef98c0a71e7e24a25e49e12d8ed120598 [file] [log] [blame]
Evgeniy Stepanov732e2682015-05-13 16:55:41 +00001// -*- C++ -*-
2//===-------------------------- algorithm ---------------------------------===//
3//
4// The LLVM Compiler Infrastructure
5//
6// This file is dual licensed under the MIT and the University of Illinois Open
7// Source Licenses. See LICENSE.TXT for details.
8//
9//===----------------------------------------------------------------------===//
10
11#ifndef _LIBCPP_EXPERIMENTAL_ALGORITHM
12#define _LIBCPP_EXPERIMENTAL_ALGORITHM
13
14/*
15 experimental/algorithm synopsis
16
17#include <algorithm>
18
19namespace std {
20namespace experimental {
21inline namespace fundamentals_v1 {
22
23template <class ForwardIterator, class Searcher>
24ForwardIterator search(ForwardIterator first, ForwardIterator last,
25 const Searcher &searcher);
Marshall Clow14082fc2018-02-01 16:36:08 +000026
27// sample removed because it's now part of C++17
Evgeniy Stepanov732e2682015-05-13 16:55:41 +000028
29} // namespace fundamentals_v1
30} // namespace experimental
31} // namespace std
32
33*/
34
35#include <experimental/__config>
36#include <algorithm>
37#include <type_traits>
38
Evgeniy Stepanov732e2682015-05-13 16:55:41 +000039#include <__debug>
40
41#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
42#pragma GCC system_header
43#endif
44
Eric Fiseliera016efb2017-05-31 22:07:49 +000045_LIBCPP_PUSH_MACROS
46#include <__undef_macros>
Evgeniy Stepanov732e2682015-05-13 16:55:41 +000047
48
Eric Fiseliera016efb2017-05-31 22:07:49 +000049_LIBCPP_BEGIN_NAMESPACE_LFTS
50
Marshall Clow81416e42015-07-20 15:40:27 +000051template <class _ForwardIterator, class _Searcher>
52_LIBCPP_INLINE_VISIBILITY
53_ForwardIterator search(_ForwardIterator __f, _ForwardIterator __l, const _Searcher &__s)
Marshall Clow28cc4dd2016-03-08 15:12:52 +000054{ return __s(__f, __l).first; }
Marshall Clow81416e42015-07-20 15:40:27 +000055
Evgeniy Stepanov732e2682015-05-13 16:55:41 +000056_LIBCPP_END_NAMESPACE_LFTS
57
Eric Fiseliera016efb2017-05-31 22:07:49 +000058_LIBCPP_POP_MACROS
59
Evgeniy Stepanov732e2682015-05-13 16:55:41 +000060#endif /* _LIBCPP_EXPERIMENTAL_ALGORITHM */