add tuples::apply

This commit is contained in:
bolero-MURAKAMI 2014-12-14 12:59:51 +09:00
parent a1f6d6ffc3
commit 5ccbc4e903
16 changed files with 280 additions and 52 deletions

View file

@ -149,6 +149,13 @@ namespace sprout {
{
return sprout::search(first1, last1, first2, last2, sprout::equal_to<>());
}
//
template<typename ForwardIterator, typename Searcher>
inline SPROUT_CONSTEXPR ForwardIterator
search(ForwardIterator first, ForwardIterator last, Searcher const& searcher) {
return searcher(first, last);
}
} // namespace sprout
#endif // #ifndef SPROUT_ALGORITHM_SEARCH_HPP