2015-05-14 00:55:41 +08:00
|
|
|
// -*- C++ -*-
|
|
|
|
//===-------------------------- algorithm ---------------------------------===//
|
|
|
|
//
|
2019-01-19 18:56:40 +08:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2015-05-14 00:55:41 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef _LIBCPP_EXPERIMENTAL_ALGORITHM
|
|
|
|
#define _LIBCPP_EXPERIMENTAL_ALGORITHM
|
|
|
|
|
|
|
|
/*
|
|
|
|
experimental/algorithm synopsis
|
|
|
|
|
|
|
|
#include <algorithm>
|
|
|
|
|
|
|
|
namespace std {
|
|
|
|
namespace experimental {
|
|
|
|
inline namespace fundamentals_v1 {
|
|
|
|
|
|
|
|
template <class ForwardIterator, class Searcher>
|
|
|
|
ForwardIterator search(ForwardIterator first, ForwardIterator last,
|
|
|
|
const Searcher &searcher);
|
2018-02-02 00:36:08 +08:00
|
|
|
|
|
|
|
// sample removed because it's now part of C++17
|
2015-05-14 00:55:41 +08:00
|
|
|
|
|
|
|
} // namespace fundamentals_v1
|
|
|
|
} // namespace experimental
|
|
|
|
} // namespace std
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <experimental/__config>
|
|
|
|
#include <algorithm>
|
|
|
|
#include <type_traits>
|
|
|
|
|
|
|
|
#include <__debug>
|
|
|
|
|
|
|
|
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
|
|
|
#pragma GCC system_header
|
|
|
|
#endif
|
|
|
|
|
2017-06-01 06:07:49 +08:00
|
|
|
_LIBCPP_BEGIN_NAMESPACE_LFTS
|
|
|
|
|
2015-07-20 23:40:27 +08:00
|
|
|
template <class _ForwardIterator, class _Searcher>
|
|
|
|
_LIBCPP_INLINE_VISIBILITY
|
|
|
|
_ForwardIterator search(_ForwardIterator __f, _ForwardIterator __l, const _Searcher &__s)
|
2016-03-08 23:12:52 +08:00
|
|
|
{ return __s(__f, __l).first; }
|
2015-07-20 23:40:27 +08:00
|
|
|
|
2015-05-14 00:55:41 +08:00
|
|
|
_LIBCPP_END_NAMESPACE_LFTS
|
|
|
|
|
|
|
|
#endif /* _LIBCPP_EXPERIMENTAL_ALGORITHM */
|