f402da98ad551e7597b78cb825951aeec7697332
[platform/upstream/boost.git] / doc / html / boost_asio / reference / WaitTraits.html
1 <html>
2 <head>
3 <meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
4 <title>Wait traits requirements</title>
5 <link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="../../boost_asio.html" title="Boost.Asio">
8 <link rel="up" href="../reference.html" title="Reference">
9 <link rel="prev" href="WaitHandler.html" title="Wait handler requirements">
10 <link rel="next" href="WriteHandler.html" title="Write handler requirements">
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="WaitHandler.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="WriteHandler.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="boost_asio.reference.WaitTraits"></a><a class="link" href="WaitTraits.html" title="Wait traits requirements">Wait traits requirements</a>
28 </h3></div></div></div>
29 <p>
30         In the table below, <code class="computeroutput"><span class="identifier">X</span></code> denotes
31         a wait traits class for clock type <code class="computeroutput"><span class="identifier">Clock</span></code>,
32         where <code class="computeroutput"><span class="identifier">Clock</span></code> meets the C++11
33         type requirements for a clock, and <code class="computeroutput"><span class="identifier">d</span></code>
34         denotes a value of type <code class="computeroutput"><span class="identifier">Clock</span><span class="special">::</span><span class="identifier">duration</span></code>.
35       </p>
36 <div class="table">
37 <a name="boost_asio.reference.WaitTraits.t0"></a><p class="title"><b>Table&#160;41.&#160;WaitTraits requirements</b></p>
38 <div class="table-contents"><table class="table" summary="WaitTraits requirements">
39 <colgroup>
40 <col>
41 <col>
42 <col>
43 </colgroup>
44 <thead><tr>
45 <th>
46                 <p>
47                   expression
48                 </p>
49               </th>
50 <th>
51                 <p>
52                   return type
53                 </p>
54               </th>
55 <th>
56                 <p>
57                   assertion/note<br> pre/post-condition
58                 </p>
59               </th>
60 </tr></thead>
61 <tbody><tr>
62 <td>
63                 <p>
64                   <code class="computeroutput"><span class="identifier">X</span><span class="special">::</span><span class="identifier">to_wait_duration</span><span class="special">(</span><span class="identifier">d</span><span class="special">);</span></code>
65                 </p>
66               </td>
67 <td>
68                 <p>
69                   <code class="computeroutput"><span class="identifier">Clock</span><span class="special">::</span><span class="identifier">duration</span></code>
70                 </p>
71               </td>
72 <td>
73                 <p>
74                   Returns the maximum duration to be used for an individual, implementation-defined
75                   wait operation.
76                 </p>
77               </td>
78 </tr></tbody>
79 </table></div>
80 </div>
81 <br class="table-break">
82 </div>
83 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
84 <td align="left"></td>
85 <td align="right"><div class="copyright-footer">Copyright &#169; 2003-2012 Christopher M. Kohlhoff<p>
86         Distributed under the Boost Software License, Version 1.0. (See accompanying
87         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>)
88       </p>
89 </div></td>
90 </tr></table>
91 <hr>
92 <div class="spirit-nav">
93 <a accesskey="p" href="WaitHandler.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../reference.html"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../boost_asio.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="WriteHandler.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
94 </div>
95 </body>
96 </html>