3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template any_of</title>
5 <link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7 <link rel="home" href="../../index.html" title="The Boost Algorithm Library">
8 <link rel="up" href="../../header/boost/algorithm/cxx11/any_of_hpp.html" title="Header <boost/algorithm/cxx11/any_of.hpp>">
9 <link rel="prev" href="../../header/boost/algorithm/cxx11/any_of_hpp.html" title="Header <boost/algorithm/cxx11/any_of.hpp>">
10 <link rel="next" href="any_of_idp37458272.html" title="Function template any_of">
12 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13 <table cellpadding="2" width="100%"><tr>
14 <td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../boost.png"></td>
15 <td align="center"><a href="../../../../../../index.html">Home</a></td>
16 <td align="center"><a href="../../../../../../libs/libraries.htm">Libraries</a></td>
17 <td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
18 <td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
19 <td align="center"><a href="../../../../../../more/index.htm">More</a></td>
22 <div class="spirit-nav">
23 <a accesskey="p" href="../../header/boost/algorithm/cxx11/any_of_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/algorithm/cxx11/any_of_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="any_of_idp37458272.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
25 <div class="refentry">
26 <a name="boost.algorithm.any_of_idp37451168"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Function template any_of</span></h2>
29 <p>boost::algorithm::any_of</p>
31 <h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
32 <div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: <<a class="link" href="../../header/boost/algorithm/cxx11/any_of_hpp.html" title="Header <boost/algorithm/cxx11/any_of.hpp>">boost/algorithm/cxx11/any_of.hpp</a>>
35 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> InputIterator<span class="special">,</span> <span class="keyword">typename</span> Predicate<span class="special">></span>
36 <span class="keyword">bool</span> <span class="identifier">any_of</span><span class="special">(</span><span class="identifier">InputIterator</span> first<span class="special">,</span> <span class="identifier">InputIterator</span> last<span class="special">,</span> <span class="identifier">Predicate</span> p<span class="special">)</span><span class="special">;</span></pre></div>
37 <div class="refsect1">
38 <a name="idp85475216"></a><h2>Description</h2>
41 <div class="note"><table border="0" summary="Note">
43 <td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../../doc/src/images/note.png"></td>
44 <th align="left">Note</th>
46 <tr><td align="left" valign="top"><p>returns false on an empty range</p></td></tr>
51 <div class="variablelist"><table border="0" class="variablelist compact">
53 <col align="left" valign="top">
58 <td><p><span class="term">Parameters:</span></p></td>
59 <td><div class="variablelist"><table border="0" class="variablelist compact">
61 <col align="left" valign="top">
66 <td><p><span class="term"><code class="computeroutput">first</code></span></p></td>
67 <td><p>The start of the input sequence </p></td>
70 <td><p><span class="term"><code class="computeroutput">last</code></span></p></td>
71 <td><p>One past the end of the input sequence </p></td>
74 <td><p><span class="term"><code class="computeroutput">p</code></span></p></td>
75 <td><p>A predicate for testing the elements of the sequence </p></td>
81 <td><p><span class="term">Returns:</span></p></td>
82 <td><p>true if any of the elements in [first, last) satisfy the predicate </p></td>
88 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
89 <td align="left"></td>
90 <td align="right"><div class="copyright-footer">Copyright © 2010-2012 Marshall Clow<p>
91 Distributed under the Boost Software License, Version 1.0. (See accompanying
92 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
97 <div class="spirit-nav">
98 <a accesskey="p" href="../../header/boost/algorithm/cxx11/any_of_hpp.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../header/boost/algorithm/cxx11/any_of_hpp.html"><img src="../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="any_of_idp37458272.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>