Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r58293 - in trunk/libs/integer/doc: . html html/boost_integer
From: john_at_[hidden]
Date: 2009-12-11 12:56:02


Author: johnmaddock
Date: 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
New Revision: 58293
URL: http://svn.boost.org/trac/boost/changeset/58293

Log:
Update docs to match code.
Text files modified:
   trunk/libs/integer/doc/html/boost_integer/cstdint.html | 29 +++++++++++++++++++++++++++++
   trunk/libs/integer/doc/html/boost_integer/history.html | 4 ++--
   trunk/libs/integer/doc/html/boost_integer/integer.html | 2 +-
   trunk/libs/integer/doc/html/boost_integer/mask.html | 4 ++--
   trunk/libs/integer/doc/html/index.html | 4 ++--
   trunk/libs/integer/doc/integer.qbk | 20 ++++++++++++++++++++
   6 files changed, 56 insertions(+), 7 deletions(-)

Modified: trunk/libs/integer/doc/html/boost_integer/cstdint.html
==============================================================================
--- trunk/libs/integer/doc/html/boost_integer/cstdint.html (original)
+++ trunk/libs/integer/doc/html/boost_integer/cstdint.html 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
@@ -38,6 +38,8 @@
       minimum-width integer types</a></span></dt>
 <dt><span class="section"><a href="cstdint.html#boost_integer.cstdint.greatest_width_integer_types">Greatest-width
       integer types</a></span></dt>
+<dt><span class="section"><a href="cstdint.html#boost_integer.cstdint.integer_constant_macros">Integer
+ Constant Macros</a></span></dt>
 </dl></div>
 <div class="section" lang="en">
 <div class="titlepage"><div><div><h3 class="title">
@@ -210,6 +212,33 @@
         These types are provided for all platforms.
       </p>
 </div>
+<div class="section" lang="en">
+<div class="titlepage"><div><div><h3 class="title">
+<a name="boost_integer.cstdint.integer_constant_macros"></a><a class="link" href="cstdint.html#boost_integer.cstdint.integer_constant_macros" title="Integer Constant Macros">Integer
+ Constant Macros</a>
+</h3></div></div></div>
+<p>
+ The following macros are always defined after inclusion of this header, these
+ allow integer constants of at least the specified width to be declared: INT8_C,
+ UINT8_C, INT16_C, UINT16_C, INT32_C, UINT32_C, INTMAX_C, UINTMAX_C.
+ </p>
+<p>
+ The macros INT64_C and UINT64_C are also defined if the the macro BOOST_NO_INT64_T
+ is not defined.
+ </p>
+<p>
+ The C99 macro __STDC_CONSTANT_MACROS is also defined as an artifact of the
+ implementation.
+ </p>
+<p>
+ For example:
+ </p>
+<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">cstdint</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">&gt;</span>
+
+<span class="comment">// Here the constant 0x1FFFFFFFF has the correct suffix applied:
+</span><span class="keyword">static</span> <span class="keyword">const</span> <span class="identifier">boost</span><span class="special">::</span><span class="identifier">uint64_t</span> <span class="identifier">c</span> <span class="special">=</span> <span class="identifier">INT64_C</span><span class="special">(</span><span class="number">0</span><span class="identifier">x1FFFFFFFF</span><span class="special">);</span>
+</pre>
+</div>
 </div>
 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
 <td align="left"></td>

Modified: trunk/libs/integer/doc/html/boost_integer/history.html
==============================================================================
--- trunk/libs/integer/doc/html/boost_integer/history.html (original)
+++ trunk/libs/integer/doc/html/boost_integer/history.html 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
@@ -26,7 +26,7 @@
 <a name="boost_integer.history"></a><a class="link" href="history.html" title="History"> History</a>
 </h2></div></div></div>
 <a name="boost_integer.history.1_42_0"></a><h5>
-<a name="id768488"></a>
+<a name="id786079"></a>
       <a class="link" href="history.html#boost_integer.history.1_42_0">1.42.0</a>
     </h5>
 <div class="itemizedlist"><ul type="disc">
@@ -55,7 +55,7 @@
       </li>
 </ul></div>
 <a name="boost_integer.history.1_32_0"></a><h5>
-<a name="id768590"></a>
+<a name="id786181"></a>
       <a class="link" href="history.html#boost_integer.history.1_32_0">1.32.0</a>
     </h5>
 <div class="itemizedlist"><ul type="disc"><li>

Modified: trunk/libs/integer/doc/html/boost_integer/integer.html
==============================================================================
--- trunk/libs/integer/doc/html/boost_integer/integer.html (original)
+++ trunk/libs/integer/doc/html/boost_integer/integer.html 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
@@ -139,7 +139,7 @@
         <code class="literal">fast</code>. The following table describes each template's criteria.
       </p>
 <div class="table">
-<a name="id764075"></a><p class="title"><b>Table&#160;1.&#160;Criteria for the Sized Type Class Templates</b></p>
+<a name="id781665"></a><p class="title"><b>Table&#160;1.&#160;Criteria for the Sized Type Class Templates</b></p>
 <div class="table-contents"><table class="table" summary="Criteria for the Sized Type Class Templates">
 <colgroup>
 <col>

Modified: trunk/libs/integer/doc/html/boost_integer/mask.html
==============================================================================
--- trunk/libs/integer/doc/html/boost_integer/mask.html (original)
+++ trunk/libs/integer/doc/html/boost_integer/mask.html 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
@@ -105,7 +105,7 @@
         of <code class="literal">high_bit_mask_t</code>.
       </p>
 <div class="table">
-<a name="id765275"></a><p class="title"><b>Table&#160;2.&#160;Members of the `boost::high_bit_mask_t` Class Template</b></p>
+<a name="id782866"></a><p class="title"><b>Table&#160;2.&#160;Members of the `boost::high_bit_mask_t` Class Template</b></p>
 <div class="table-contents"><table class="table" summary="Members of the `boost::high_bit_mask_t` Class Template">
 <colgroup>
 <col>
@@ -204,7 +204,7 @@
         type. The following table describes the members of <code class="literal">low_bits_mask_t</code>.
       </p>
 <div class="table">
-<a name="id765484"></a><p class="title"><b>Table&#160;3.&#160;Members of the [^boost::low_bits_mask_t] Class Template</b></p>
+<a name="id783074"></a><p class="title"><b>Table&#160;3.&#160;Members of the [^boost::low_bits_mask_t] Class Template</b></p>
 <div class="table-contents"><table class="table" summary="Members of the [^boost::low_bits_mask_t] Class Template">
 <colgroup>
 <col>

Modified: trunk/libs/integer/doc/html/index.html
==============================================================================
--- trunk/libs/integer/doc/html/index.html (original)
+++ trunk/libs/integer/doc/html/index.html 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
@@ -40,7 +40,7 @@
 <div><p class="copyright">Copyright &#169; 2001 -2009 Beman Dawes, Daryle Walker, Gennaro Prota,
       John Maddock</p></div>
 <div><div class="legalnotice">
-<a name="id753741"></a><p>
+<a name="id771218"></a><p>
         Distributed under the Boost Software License, Version 1.0. (See accompanying
         file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
       </p>
@@ -237,7 +237,7 @@
 </div>
 </div>
 <table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
-<td align="left"><p><small>Last revised: November 28, 2009 at 17:06:38 GMT</small></p></td>
+<td align="left"><p><small>Last revised: December 11, 2009 at 17:54:58 GMT</small></p></td>
 <td align="right"><div class="copyright-footer"></div></td>
 </tr></table>
 <hr>

Modified: trunk/libs/integer/doc/integer.qbk
==============================================================================
--- trunk/libs/integer/doc/integer.qbk (original)
+++ trunk/libs/integer/doc/integer.qbk 2009-12-11 12:56:01 EST (Fri, 11 Dec 2009)
@@ -188,6 +188,26 @@
 These types are provided for all platforms.
 
 [endsect]
+
+[section Integer Constant Macros]
+
+The following macros are always defined after inclusion of this header, these allow
+integer constants of at least the specified width to be declared:
+INT8_C, UINT8_C, INT16_C, UINT16_C, INT32_C, UINT32_C, INTMAX_C, UINTMAX_C.
+
+The macros INT64_C and UINT64_C are also defined if the the macro BOOST_NO_INT64_T is not defined.
+
+The C99 macro __STDC_CONSTANT_MACROS is also defined as an artifact of the implementation.
+
+For example:
+
+ #include <boost/cstdint.hpp>
+
+ // Here the constant 0x1FFFFFFFF has the correct suffix applied:
+ static const boost::uint64_t c = INT64_C(0x1FFFFFFFF);
+
+[endsect]
+
 [endsect]
 
 [section:traits Integer Traits]


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk