3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Function template operator||</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 C++ Libraries BoostBook Documentation Subset">
8 <link rel="up" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp" title="Header <boost/algorithm/string/classification.hpp>">
9 <link rel="prev" href="operator___idp146648848.html" title="Function template operator&&">
10 <link rel="next" href="operator__idp216644128.html" title="Function template operator!">
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="operator___idp146648848.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp"><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="operator__idp216644128.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
25 <div class="refentry">
26 <a name="boost.algorithm.operator_idp146901456"></a><div class="titlepage"></div>
27 <div class="refnamediv">
28 <h2><span class="refentrytitle">Function template operator||</span></h2>
29 <p>boost::algorithm::operator|| — predicate 'or' composition predicate </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="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp" title="Header <boost/algorithm/string/classification.hpp>">boost/algorithm/string/classification.hpp</a>>
35 <span class="keyword">template</span><span class="special"><</span><span class="keyword">typename</span> Pred1T<span class="special">,</span> <span class="keyword">typename</span> Pred2T<span class="special">></span>
36 <span class="emphasis"><em><span class="identifier">unspecified</span></em></span> <span class="keyword">operator</span><span class="special">||</span><span class="special">(</span><span class="keyword">const</span> <span class="identifier">predicate_facade</span><span class="special"><</span> <span class="identifier">Pred1T</span> <span class="special">></span> <span class="special">&</span> Pred1<span class="special">,</span>
37 <span class="keyword">const</span> <span class="identifier">predicate_facade</span><span class="special"><</span> <span class="identifier">Pred2T</span> <span class="special">></span> <span class="special">&</span> Pred2<span class="special">)</span><span class="special">;</span></pre></div>
38 <div class="refsect1">
39 <a name="idp432074448"></a><h2>Description</h2>
40 <p>Construct the <code class="computeroutput">class_or</code> predicate. This predicate can be used to logically combine two classification predicates. <code class="computeroutput">class_or</code> holds, if one of the predicates return true.</p>
44 <div class="variablelist"><table border="0" class="variablelist compact">
46 <col align="left" valign="top">
51 <td><p><span class="term">Parameters:</span></p></td>
52 <td><div class="variablelist"><table border="0" class="variablelist compact">
54 <col align="left" valign="top">
59 <td><p><span class="term"><code class="computeroutput">Pred1</code></span></p></td>
60 <td><p>The first predicate </p></td>
63 <td><p><span class="term"><code class="computeroutput">Pred2</code></span></p></td>
64 <td><p>The second predicate </p></td>
70 <td><p><span class="term">Returns:</span></p></td>
71 <td><p>An instance of the <code class="computeroutput">class_or</code> predicate </p></td>
77 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
78 <td align="left"></td>
79 <td align="right"><div class="copyright-footer">Copyright © 2002-2004 Pavol Droba<p>Use, modification and distribution is subject to the Boost
80 Software License, Version 1.0. (See accompanying file
81 <code class="filename">LICENSE_1_0.txt</code> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
86 <div class="spirit-nav">
87 <a accesskey="p" href="operator___idp146648848.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../string_algo/reference.html#header.boost.algorithm.string.classification_hpp"><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="operator__idp216644128.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>