Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_33_1/doc/html/id1245151.html @ 12

Last change on this file since 12 was 12, checked in by landauf, 17 years ago

added boost

File size: 4.1 KB
RevLine 
[12]1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
4<title>Function template operator&lt;&lt;</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">
8<link rel="up" href="tribool/reference.html#id1277344" title="Header &lt;boost/logic/tribool_io.hpp&gt;">
9<link rel="prev" href="id1244293.html" title="Function template get_default_indeterminate_name">
10<link rel="next" href="id1286986.html" title="Function template operator&lt;&lt;">
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.png (6897 bytes)" 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="id1244293.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="tribool/reference.html#id1277344"><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="id1286986.html"><img src="images/next.png" alt="Next"></a>
24</div>
25<div class="refentry" lang="en">
26<a name="id1245151"></a><div class="titlepage"></div>
27<div class="refnamediv">
28<h2><span class="refentrytitle">Function template operator&lt;&lt;</span></h2>
29<p>boost::logic::operator&lt;&lt; &#8212; Writes the value of a tribool to a stream. </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="bold"><strong>template</strong></span>&lt;<span class="bold"><strong>typename</strong></span> CharT, <span class="bold"><strong>typename</strong></span> Traits&gt; 
34  <span class="type">std::basic_ostream&lt; CharT, Traits &gt; &amp;</span> 
35  <span class="bold"><strong>operator</strong></span>&lt;&lt;(std::basic_ostream&lt; CharT, Traits &gt; &amp; out, <a href="boost/logic/tribool.html" title="Class tribool">tribool</a> x);</pre></div>
36<div class="refsect1" lang="en">
37<a name="id1571944"></a><h2>Description</h2>
38<p>When the value of <code class="computeroutput">x</code>  is either <code class="computeroutput">true</code>  or <code class="computeroutput">false</code> , this routine is semantically equivalent to: </p>
39<pre class="programlisting"> out &lt;&lt; static_cast&lt;bool&gt;(x);
40</pre>
41<p>When <code class="computeroutput">x</code>  has an indeterminate value, it outputs either the integer value 2 (if <code class="computeroutput">(out.flags() &amp; std::ios_base::boolalpha) == 0</code> ) or the name of the indeterminate value. The name of the indeterminate value comes from the indeterminate_name facet (if it is defined in the output stream's locale), or from the get_default_indeterminate_name function (if it is not defined in the locale or if the C++ standard library implementation does not support locales).</p>
42<p></p>
43<p><b xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision"><span class="term">Returns</span></b>:
44
45    <code class="computeroutput">out</code></p>
46</div>
47</div>
48<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
49<td align="left"></td>
50<td align="right"><small>Copyright © 2002-2004 Douglas Gregor</small></td>
51</tr></table>
52<hr>
53<div class="spirit-nav">
54<a accesskey="p" href="id1244293.html"><img src="images/prev.png" alt="Prev"></a><a accesskey="u" href="tribool/reference.html#id1277344"><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="id1286986.html"><img src="images/next.png" alt="Next"></a>
55</div>
56</body>
57</html>
Note: See TracBrowser for help on using the repository browser.