• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html>
2<head>
3<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4<title>Class fiber</title>
5<link rel="stylesheet" href="../../../../../../doc/src/boostbook.css" type="text/css">
6<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7<link rel="home" href="../../index.html" title="Chapter&#160;1.&#160;Context">
8<link rel="up" href="../fib.html" title="Context switching with fibers">
9<link rel="prev" href="implementations__fcontext_t__ucontext_t_and_winfiber.html" title="Implementations: fcontext_t, ucontext_t and WinFiber">
10<link rel="next" href="../cc.html" title="Context switching with call/cc">
11</head>
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>
20</tr></table>
21<hr>
22<div class="spirit-nav">
23<a accesskey="p" href="implementations__fcontext_t__ucontext_t_and_winfiber.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../fib.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="../cc.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
24</div>
25<div class="section">
26<div class="titlepage"><div><div><h3 class="title">
27<a name="context.fib.class__fiber_"></a><a class="link" href="class__fiber_.html" title="Class fiber">Class <code class="computeroutput"><span class="identifier">fiber</span></code></a>
28</h3></div></div></div>
29<pre class="programlisting"><span class="preprocessor">#include</span> <span class="special">&lt;</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">context</span><span class="special">/</span><span class="identifier">fiber</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
30
31<span class="keyword">class</span> <span class="identifier">fiber</span> <span class="special">{</span>
32<span class="keyword">public</span><span class="special">:</span>
33    <span class="identifier">fiber</span><span class="special">()</span> <span class="keyword">noexcept</span> <span class="special">=</span> <span class="keyword">default</span><span class="special">;</span>
34
35    <span class="special">~</span><span class="identifier">fiber</span><span class="special">();</span>
36
37    <span class="identifier">fiber</span><span class="special">(</span><span class="identifier">fiber</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
38
39    <span class="identifier">fiber</span> <span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">=(</span><span class="identifier">fiber</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
40
41    <span class="identifier">fiber</span><span class="special">(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
42    <span class="identifier">fiber</span> <span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span> <span class="special">=</span> <span class="keyword">delete</span><span class="special">;</span>
43
44    <span class="identifier">fiber</span> <span class="identifier">resume</span><span class="special">();</span>
45
46    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Fn</span><span class="special">&gt;</span>
47    <span class="identifier">fiber</span> <span class="identifier">resume_with</span><span class="special">(</span><span class="identifier">Fn</span> <span class="special">&amp;&amp;</span> <span class="identifier">fn</span><span class="special">);</span>
48
49    <span class="keyword">explicit</span> <span class="keyword">operator</span> <span class="keyword">bool</span><span class="special">()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
50
51    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
52
53    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
54
55    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
56
57    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
58
59    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
60
61    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
62
63    <span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
64
65    <span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">charT</span><span class="special">,</span><span class="keyword">class</span> <span class="identifier">traitsT</span><span class="special">&gt;</span>
66    <span class="keyword">friend</span> <span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">charT</span><span class="special">,</span><span class="identifier">traitsT</span><span class="special">&gt;</span> <span class="special">&amp;</span>
67    <span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">charT</span><span class="special">,</span><span class="identifier">traitsT</span><span class="special">&gt;</span> <span class="special">&amp;</span> <span class="identifier">os</span><span class="special">,</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="special">{</span>
68
69    <span class="keyword">void</span> <span class="identifier">swap</span><span class="special">(</span><span class="identifier">fiber</span> <span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
70<span class="special">};</span>
71</pre>
72<p>
73        </p>
74<h5>
75<a name="fib_constructor_bridgehead"></a>
76  <span><a name="fib_constructor"></a></span>
77  <a class="link" href="class__fiber_.html#fib_constructor">Constructor</a>
78</h5>
79<p>
80      </p>
81<pre class="programlisting"><span class="identifier">fiber</span><span class="special">()</span> <span class="keyword">noexcept</span><span class="special">;</span>
82</pre>
83<div class="variablelist">
84<p class="title"><b></b></p>
85<dl>
86<dt><span class="term">Effects:</span></dt>
87<dd><p>
88              Creates a invalid fiber.
89            </p></dd>
90<dt><span class="term">Throws:</span></dt>
91<dd><p>
92              Nothing.
93            </p></dd>
94</dl>
95</div>
96<p>
97        </p>
98<h5>
99<a name="fib_destructor%20destructor_bridgehead"></a>
100  <span><a name="fib_destructor%20destructor"></a></span>
101  <a class="link" href="class__fiber_.html#fib_destructor%20destructor">Destructor</a>
102</h5>
103<p>
104      </p>
105<pre class="programlisting"><span class="special">~</span><span class="identifier">fiber</span><span class="special">();</span>
106</pre>
107<div class="variablelist">
108<p class="title"><b></b></p>
109<dl>
110<dt><span class="term">Effects:</span></dt>
111<dd><p>
112              Destructs the associated stack if <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> is a valid fiber, e.g. <span class="emphasis"><em>fiber::operator
113              bool()</em></span> returns <code class="computeroutput"><span class="keyword">true</span></code>.
114            </p></dd>
115<dt><span class="term">Throws:</span></dt>
116<dd><p>
117              Nothing.
118            </p></dd>
119</dl>
120</div>
121<p>
122        </p>
123<h5>
124<a name="fib_move%20constructor_bridgehead"></a>
125  <span><a name="fib_move%20constructor"></a></span>
126  <a class="link" href="class__fiber_.html#fib_move%20constructor">Move
127        constructor</a>
128</h5>
129<p>
130      </p>
131<pre class="programlisting"><span class="identifier">fiber</span><span class="special">(</span><span class="identifier">fiber</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
132</pre>
133<div class="variablelist">
134<p class="title"><b></b></p>
135<dl>
136<dt><span class="term">Effects:</span></dt>
137<dd><p>
138              Moves underlying capture fiber to <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>.
139            </p></dd>
140<dt><span class="term">Throws:</span></dt>
141<dd><p>
142              Nothing.
143            </p></dd>
144</dl>
145</div>
146<p>
147        </p>
148<h5>
149<a name="fib_move%20assignment_bridgehead"></a>
150  <span><a name="fib_move%20assignment"></a></span>
151  <a class="link" href="class__fiber_.html#fib_move%20assignment">Move
152        assignment operator</a>
153</h5>
154<p>
155      </p>
156<pre class="programlisting"><span class="identifier">fiber</span> <span class="special">&amp;</span> <span class="keyword">operator</span><span class="special">=(</span><span class="identifier">fiber</span> <span class="special">&amp;&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">noexcept</span><span class="special">;</span>
157</pre>
158<div class="variablelist">
159<p class="title"><b></b></p>
160<dl>
161<dt><span class="term">Effects:</span></dt>
162<dd><p>
163              Moves the state of <code class="computeroutput"><span class="identifier">other</span></code>
164              to <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
165              using move semantics.
166            </p></dd>
167<dt><span class="term">Throws:</span></dt>
168<dd><p>
169              Nothing.
170            </p></dd>
171</dl>
172</div>
173<p>
174        </p>
175<h5>
176<a name="fib_operator_call_bridgehead"></a>
177  <span><a name="fib_operator_call"></a></span>
178  <a class="link" href="class__fiber_.html#fib_operator_call">Member function
179        <code class="computeroutput">operator()</code>()</a>
180</h5>
181<p>
182      </p>
183<pre class="programlisting"><span class="identifier">fiber</span> <span class="identifier">resume</span><span class="special">();</span>
184
185<span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">Fn</span><span class="special">&gt;</span>
186<span class="identifier">fiber</span> <span class="identifier">resume_with</span><span class="special">(</span><span class="identifier">Fn</span> <span class="special">&amp;&amp;</span> <span class="identifier">fn</span><span class="special">);</span>
187</pre>
188<div class="variablelist">
189<p class="title"><b></b></p>
190<dl>
191<dt><span class="term">Effects:</span></dt>
192<dd><p>
193              Captures current fiber and resumes <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>. The function <code class="computeroutput"><span class="identifier">resume_with</span></code>,
194              is used to execute function <code class="computeroutput"><span class="identifier">fn</span></code>
195              in the execution context of <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code> (e.g. the stack frame of <code class="computeroutput"><span class="identifier">fn</span></code> is allocated on stack of <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>).
196            </p></dd>
197<dt><span class="term">Returns:</span></dt>
198<dd><p>
199              The fiber representing the fiber that has been suspended.
200            </p></dd>
201<dt><span class="term">Note:</span></dt>
202<dd><p>
203              Function <code class="computeroutput"><span class="identifier">fn</span></code> needs to
204              return <code class="computeroutput"><span class="identifier">fiber</span></code>.
205            </p></dd>
206<dt><span class="term">Note:</span></dt>
207<dd><p>
208              The returned fiber indicates if the suspended fiber has terminated
209              (return from context-function) via <code class="computeroutput"><span class="keyword">bool</span>
210              <span class="keyword">operator</span><span class="special">()</span></code>.
211            </p></dd>
212</dl>
213</div>
214<p>
215        </p>
216<h5>
217<a name="fib_operator_bool_bridgehead"></a>
218  <span><a name="fib_operator_bool"></a></span>
219  <a class="link" href="class__fiber_.html#fib_operator_bool">Member function
220        <code class="computeroutput">operator bool</code>()</a>
221</h5>
222<p>
223      </p>
224<pre class="programlisting"><span class="keyword">explicit</span> <span class="keyword">operator</span> <span class="keyword">bool</span><span class="special">()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
225</pre>
226<div class="variablelist">
227<p class="title"><b></b></p>
228<dl>
229<dt><span class="term">Returns:</span></dt>
230<dd><p>
231              <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
232              points to a captured fiber.
233            </p></dd>
234<dt><span class="term">Throws:</span></dt>
235<dd><p>
236              Nothing.
237            </p></dd>
238</dl>
239</div>
240<p>
241        </p>
242<h5>
243<a name="fib_operator_not_bridgehead"></a>
244  <span><a name="fib_operator_not"></a></span>
245  <a class="link" href="class__fiber_.html#fib_operator_not">Member function
246        <code class="computeroutput">operator!</code>()</a>
247</h5>
248<p>
249      </p>
250<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!()</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
251</pre>
252<div class="variablelist">
253<p class="title"><b></b></p>
254<dl>
255<dt><span class="term">Returns:</span></dt>
256<dd><p>
257              <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
258              does not point to a captured fiber.
259            </p></dd>
260<dt><span class="term">Throws:</span></dt>
261<dd><p>
262              Nothing.
263            </p></dd>
264</dl>
265</div>
266<p>
267        </p>
268<h5>
269<a name="fib_operator_equal_bridgehead"></a>
270  <span><a name="fib_operator_equal"></a></span>
271  <a class="link" href="class__fiber_.html#fib_operator_equal">Member function
272        <code class="computeroutput">operator==</code>()</a>
273</h5>
274<p>
275      </p>
276<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">==(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
277</pre>
278<div class="variablelist">
279<p class="title"><b></b></p>
280<dl>
281<dt><span class="term">Returns:</span></dt>
282<dd><p>
283              <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
284              and <code class="computeroutput"><span class="identifier">other</span></code> represent
285              the same fiber, <code class="computeroutput"><span class="keyword">false</span></code>
286              otherwise.
287            </p></dd>
288<dt><span class="term">Throws:</span></dt>
289<dd><p>
290              Nothing.
291            </p></dd>
292</dl>
293</div>
294<p>
295        </p>
296<h5>
297<a name="fib_operator_notequal_bridgehead"></a>
298  <span><a name="fib_operator_notequal"></a></span>
299  <a class="link" href="class__fiber_.html#fib_operator_notequal">Member
300        function <code class="computeroutput">operator!=</code>()</a>
301</h5>
302<p>
303      </p>
304<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">!=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
305</pre>
306<div class="variablelist">
307<p class="title"><b></b></p>
308<dl>
309<dt><span class="term">Returns:</span></dt>
310<dd><p>
311              <code class="computeroutput">! (other == * this)</code>
312            </p></dd>
313<dt><span class="term">Throws:</span></dt>
314<dd><p>
315              Nothing.
316            </p></dd>
317</dl>
318</div>
319<p>
320        </p>
321<h5>
322<a name="fib_operator_less_bridgehead"></a>
323  <span><a name="fib_operator_less"></a></span>
324  <a class="link" href="class__fiber_.html#fib_operator_less">Member function
325        <code class="computeroutput">operator&lt;</code>()</a>
326</h5>
327<p>
328      </p>
329<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
330</pre>
331<div class="variablelist">
332<p class="title"><b></b></p>
333<dl>
334<dt><span class="term">Returns:</span></dt>
335<dd><p>
336              <code class="computeroutput"><span class="keyword">true</span></code> if <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span> <span class="special">!=</span> <span class="identifier">other</span></code>
337              is true and the implementation-defined total order of <code class="computeroutput"><span class="identifier">fiber</span></code> values places <code class="computeroutput"><span class="special">*</span><span class="keyword">this</span></code>
338              before <code class="computeroutput"><span class="identifier">other</span></code>, false
339              otherwise.
340            </p></dd>
341<dt><span class="term">Throws:</span></dt>
342<dd><p>
343              Nothing.
344            </p></dd>
345</dl>
346</div>
347<p>
348        </p>
349<h5>
350<a name="fib_operator_greater_bridgehead"></a>
351  <span><a name="fib_operator_greater"></a></span>
352  <a class="link" href="class__fiber_.html#fib_operator_greater">Member
353        function <code class="computeroutput">operator&gt;</code>()</a>
354</h5>
355<p>
356      </p>
357<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
358</pre>
359<div class="variablelist">
360<p class="title"><b></b></p>
361<dl>
362<dt><span class="term">Returns:</span></dt>
363<dd><p>
364              <code class="computeroutput"><span class="identifier">other</span> <span class="special">&lt;</span>
365              <span class="special">*</span> <span class="keyword">this</span></code>
366            </p></dd>
367<dt><span class="term">Throws:</span></dt>
368<dd><p>
369              Nothing.
370            </p></dd>
371</dl>
372</div>
373<p>
374        </p>
375<h5>
376<a name="fib_operator_lesseq_bridgehead"></a>
377  <span><a name="fib_operator_lesseq"></a></span>
378  <a class="link" href="class__fiber_.html#fib_operator_lesseq">Member
379        function <code class="computeroutput">operator&lt;=</code>()</a>
380</h5>
381<p>
382      </p>
383<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&lt;=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
384</pre>
385<div class="variablelist">
386<p class="title"><b></b></p>
387<dl>
388<dt><span class="term">Returns:</span></dt>
389<dd><p>
390              <code class="computeroutput"><span class="special">!</span> <span class="special">(</span><span class="identifier">other</span> <span class="special">&lt;</span>
391              <span class="special">*</span> <span class="keyword">this</span><span class="special">)</span></code>
392            </p></dd>
393<dt><span class="term">Throws:</span></dt>
394<dd><p>
395              Nothing.
396            </p></dd>
397</dl>
398</div>
399<p>
400        </p>
401<h5>
402<a name="fib_operator_greatereq_bridgehead"></a>
403  <span><a name="fib_operator_greatereq"></a></span>
404  <a class="link" href="class__fiber_.html#fib_operator_greatereq">Member
405        function <code class="computeroutput">operator&gt;=</code>()</a>
406</h5>
407<p>
408      </p>
409<pre class="programlisting"><span class="keyword">bool</span> <span class="keyword">operator</span><span class="special">&gt;=(</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">)</span> <span class="keyword">const</span> <span class="keyword">noexcept</span><span class="special">;</span>
410</pre>
411<div class="variablelist">
412<p class="title"><b></b></p>
413<dl>
414<dt><span class="term">Returns:</span></dt>
415<dd><p>
416              <code class="computeroutput"><span class="special">!</span> <span class="special">(*</span>
417              <span class="keyword">this</span> <span class="special">&lt;</span>
418              <span class="identifier">other</span><span class="special">)</span></code>
419            </p></dd>
420<dt><span class="term">Throws:</span></dt>
421<dd><p>
422              Nothing.
423            </p></dd>
424</dl>
425</div>
426<p>
427        </p>
428<h5>
429<a name="fib_bridgehead"></a>
430  <span><a name="fib"></a></span>
431  <a class="link" href="../fib.html#fib">Non-member function <code class="computeroutput">operator&lt;&lt;()</code></a>
432</h5>
433<p>
434      </p>
435<pre class="programlisting"><span class="keyword">template</span><span class="special">&lt;</span><span class="keyword">typename</span> <span class="identifier">charT</span><span class="special">,</span><span class="keyword">class</span> <span class="identifier">traitsT</span><span class="special">&gt;</span>
436<span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">charT</span><span class="special">,</span><span class="identifier">traitsT</span><span class="special">&gt;</span> <span class="special">&amp;</span>
437<span class="keyword">operator</span><span class="special">&lt;&lt;(</span><span class="identifier">std</span><span class="special">::</span><span class="identifier">basic_ostream</span><span class="special">&lt;</span><span class="identifier">charT</span><span class="special">,</span><span class="identifier">traitsT</span><span class="special">&gt;</span> <span class="special">&amp;</span> <span class="identifier">os</span><span class="special">,</span><span class="identifier">fiber</span> <span class="keyword">const</span><span class="special">&amp;</span> <span class="identifier">other</span><span class="special">);</span>
438</pre>
439<div class="variablelist">
440<p class="title"><b></b></p>
441<dl>
442<dt><span class="term">Effects:</span></dt>
443<dd><p>
444              Writes the representation of <code class="computeroutput"><span class="identifier">other</span></code>
445              to stream <code class="computeroutput"><span class="identifier">os</span></code>.
446            </p></dd>
447<dt><span class="term">Returns:</span></dt>
448<dd><p>
449              <code class="computeroutput"><span class="identifier">os</span></code>
450            </p></dd>
451</dl>
452</div>
453</div>
454<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
455<td align="left"></td>
456<td align="right"><div class="copyright-footer">Copyright &#169; 2014 Oliver Kowalke<p>
457        Distributed under the Boost Software License, Version 1.0. (See accompanying
458        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>)
459      </p>
460</div></td>
461</tr></table>
462<hr>
463<div class="spirit-nav">
464<a accesskey="p" href="implementations__fcontext_t__ucontext_t_and_winfiber.html"><img src="../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../fib.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="../cc.html"><img src="../../../../../../doc/src/images/next.png" alt="Next"></a>
465</div>
466</body>
467</html>
468