Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/doc/html/id1288172-bb.html @ 29

Last change on this file since 29 was 29, checked in by landauf, 16 years ago

updated boost from 1_33_1 to 1_34_1

File size: 5.6 KB
Line 
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Function operator||</title>
5<link rel="stylesheet" href="boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.68.1">
7<link rel="start" href="index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
8<link rel="up" href="tribool/reference.html#header.boost.logic.tribool.hpp" title="Header &lt;boost/logic/tribool.hpp&gt;">
9<link rel="prev" href="id695691-bb.html" title="Function operator&amp;&amp;">
10<link rel="next" href="id1287701-bb.html" title="Function operator==">
11</head>
12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
13<table cellpadding="2" width="100%">
14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../boost.png"></td>
15<td align="center"><a href="../../index.htm">Home</a></td>
16<td align="center"><a href="../../libs/libraries.htm">Libraries</a></td>
17<td align="center"><a href="../../people/people.htm">People</a></td>
18<td align="center"><a href="../../more/faq.htm">FAQ</a></td>
19<td align="center"><a href="../../more/index.htm">More</a></td>
20</table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="id695691-bb.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="tribool/reference.html#header.boost.logic.tribool.hpp"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id1287701-bb.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="id1288172-bb"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Function operator||</span></h2>
29<p>boost::logic::operator|| &#8212; Computes the logical disjunction of two tribools. </p>
30</div>
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">
33<span class="type"><a href="boost/logic/tribool.html" title="Class tribool">tribool</a></span> <span class="bold"><strong>operator</strong></span>||(<a href="boost/logic/tribool.html" title="Class tribool">tribool</a> x, <a href="boost/logic/tribool.html" title="Class tribool">tribool</a> y);
34<span class="type"><a href="boost/logic/tribool.html" title="Class tribool">tribool</a></span> <span class="bold"><strong>operator</strong></span>||(<a href="boost/logic/tribool.html" title="Class tribool">tribool</a> x, <span class="bold"><strong>bool</strong></span> y);
35<span class="type"><a href="boost/logic/tribool.html" title="Class tribool">tribool</a></span> <span class="bold"><strong>operator</strong></span>||(<span class="bold"><strong>bool</strong></span> x, <a href="boost/logic/tribool.html" title="Class tribool">tribool</a> y);
36<span class="type"><a href="boost/logic/tribool.html" title="Class tribool">tribool</a></span> <span class="bold"><strong>operator</strong></span>||(indeterminate_keyword_t, <a href="boost/logic/tribool.html" title="Class tribool">tribool</a> x);
37<span class="type"><a href="boost/logic/tribool.html" title="Class tribool">tribool</a></span> <span class="bold"><strong>operator</strong></span>||(<a href="boost/logic/tribool.html" title="Class tribool">tribool</a> x, indeterminate_keyword_t);</pre></div>
38<div class="refsect1" lang="en">
39<a name="id1836853"></a><h2>Description</h2>
40<p>
41
42</p>
43<div class="variablelist"><table border="0">
44<col align="left" valign="top">
45<tbody>
46<tr>
47<td>
48<span class="term">Returns:</span></td>
49<td>
50<p>the result of logically ORing the two tribool values, according to the following table: </p>
51<div class="informaltable"><table class="table">
52<colgroup>
53<col>
54<col>
55<col>
56<col>
57</colgroup>
58<tbody>
59<tr>
60<td align="center" valign="middle"><span class="bold"><strong><code class="computeroutput">||</code> </strong></span></td>
61<td align="center" valign="middle"><span class="bold"><strong>false</strong></span></td>
62<td align="center" valign="middle"><span class="bold"><strong>true</strong></span></td>
63<td align="center" valign="middle"><span class="bold"><strong>indeterminate</strong></span></td>
64</tr>
65<tr>
66<td align="center" valign="middle"><span class="bold"><strong>false</strong></span></td>
67<td align="center" valign="middle">false</td>
68<td align="center" valign="middle">true</td>
69<td align="center" valign="middle">indeterminate</td>
70</tr>
71<tr>
72<td align="center" valign="middle"><span class="bold"><strong>true</strong></span></td>
73<td align="center" valign="middle">true</td>
74<td align="center" valign="middle">true</td>
75<td align="center" valign="middle">true</td>
76</tr>
77<tr>
78<td align="center" valign="middle"><span class="bold"><strong>indeterminate</strong></span></td>
79<td align="center" valign="middle">indeterminate</td>
80<td align="center" valign="middle">true</td>
81<td align="center" valign="middle">indeterminate</td>
82</tr>
83</tbody>
84</table></div>
85<p>
86</p>
87</td>
88</tr>
89<tr>
90<td>
91<span class="term">Throws:</span></td>
92<td>Will not throw.</td>
93</tr>
94</tbody>
95</table></div>
96</div>
97</div>
98<table width="100%"><tr>
99<td align="left"></td>
100<td align="right"><small>Copyright © 2002-2004 Douglas Gregor</small></td>
101</tr></table>
102<hr>
103<div class="spirit-nav">
104<a accesskey="p" href="id695691-bb.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="tribool/reference.html#header.boost.logic.tribool.hpp"><img src="images/up.png" alt="Up"></a><a accesskey="h" href="index.html"><img src="images/home.png" alt="Home"></a><a accesskey="n" href="id1287701-bb.html"><img src="images/next.png" alt="Next"></a>
105</div>
106</body>
107</html>
Note: See TracBrowser for help on using the repository browser.