|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r78730 - in branches/release/libs/utility/doc: . html
From: vicente.botet_at_[hidden]
Date: 2012-05-28 15:00:54
Author: viboes
Date: 2012-05-28 15:00:53 EDT (Mon, 28 May 2012)
New Revision: 78730
URL: http://svn.boost.org/trac/boost/changeset/78730
Log:
Utility/declval: update history.
Text files modified:
branches/release/libs/utility/doc/declval.qbk | 16 ++++++++--------
branches/release/libs/utility/doc/html/declval.html | 22 +++++++++-------------
2 files changed, 17 insertions(+), 21 deletions(-)
Modified: branches/release/libs/utility/doc/declval.qbk
==============================================================================
--- branches/release/libs/utility/doc/declval.qbk (original)
+++ branches/release/libs/utility/doc/declval.qbk 2012-05-28 15:00:53 EDT (Mon, 28 May 2012)
@@ -1,7 +1,6 @@
[/
/ Copyright (c) 2008 Howard Hinnant
- / Copyright (c) 2008 Beman Dawes
- / Copyright (c) 2009-20010 Vicente J. Botet Escriba
+ / Copyright (c) 2009-20012 Vicente J. Botet Escriba
/
/ 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)
@@ -10,10 +9,8 @@
[article Declval
[quickbook 1.5]
[authors [Hinnant, Howard]]
- [authors [Dawes, Beman]]
[authors [Botet Escriba, Vicente J.]]
[copyright 2008 Howard Hinnant]
- [copyright 2008 Beman Dawes]
[copyright 2009-2012 Vicente J. Botet Escriba]
[license
Distributed under the Boost Software License, Version 1.0.
@@ -59,9 +56,9 @@
typename std::add_rvalue_reference<T>::type declval(); // not used
which ensures that we can also use cv void as template parameter. The careful reader might have noticed that `declval()`
-already exists under the name create() as part of the definition of the semantics of the type trait is_convertible in the C==0x standard.
+already exists under the name create() as part of the definition of the semantics of the type trait is_convertible in the C++0x standard.
-The provision of a new library component that allows the production of values in unevaluated expressions is considered as
+The provision of a new library component that allows the production of values in unevaluated expressions is considered
important to realize constrained templates in C++0x where concepts are not available.
This extremely light-weight function is expected to be part of the daily tool-box of the C++0x programmer.
@@ -77,7 +74,7 @@
namespace boost {
template <typename T>
- typename add_rvalue_reference<T>::type declval(); //noexcept; // as unevaluated operand
+ typename add_rvalue_reference<T>::type declval() noexcept; // as unevaluated operand
} // namespace boost
@@ -96,7 +93,7 @@
template <class To, class From>
decltype(static_cast<To>(declval<From>())) convert(From&&);
-Declares a function template convert which only participats in overloading if the type From can be explicitly converted to type To.
+Declares a function template convert which only participates in overloading if the type From can be explicitly converted to type To.
[endsect]
@@ -113,3 +110,6 @@
[endsect]
+
+
+
Modified: branches/release/libs/utility/doc/html/declval.html
==============================================================================
--- branches/release/libs/utility/doc/html/declval.html (original)
+++ branches/release/libs/utility/doc/html/declval.html 2012-05-28 15:00:53 EDT (Mon, 28 May 2012)
@@ -27,17 +27,13 @@
<span class="firstname">Howard</span> <span class="surname">Hinnant</span>
</h3></div>
<div class="author"><h3 class="author">
-<span class="firstname">Beman</span> <span class="surname">Dawes</span>
-</h3></div>
-<div class="author"><h3 class="author">
<span class="firstname">Vicente J.</span> <span class="surname">Botet Escriba</span>
</h3></div>
</div></div>
<div><p class="copyright">Copyright © 2008 Howard Hinnant</p></div>
-<div><p class="copyright">Copyright © 2008 Beman Dawes</p></div>
<div><p class="copyright">Copyright © 2009 -2012 Vicente J. Botet Escriba</p></div>
<div><div class="legalnotice">
-<a name="idp13448880"></a><p>
+<a name="idp13449552"></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>
@@ -104,13 +100,13 @@
which ensures that we can also use cv void as template parameter. The careful
reader might have noticed that <code class="computeroutput"><span class="identifier">declval</span><span class="special">()</span></code> already exists under the name create() as
part of the definition of the semantics of the type trait is_convertible in
- the C==0x standard.
+ the C++0x standard.
</p>
<p>
The provision of a new library component that allows the production of values
- in unevaluated expressions is considered as important to realize constrained
- templates in C++0x where concepts are not available. This extremely light-weight
- function is expected to be part of the daily tool-box of the C++0x programmer.
+ in unevaluated expressions is considered important to realize constrained templates
+ in C++0x where concepts are not available. This extremely light-weight function
+ is expected to be part of the daily tool-box of the C++0x programmer.
</p>
</div>
<div class="section">
@@ -123,7 +119,7 @@
<pre class="programlisting"><span class="keyword">namespace</span> <span class="identifier">boost</span> <span class="special">{</span>
<span class="keyword">template</span> <span class="special"><</span><span class="keyword">typename</span> <span class="identifier">T</span><span class="special">></span>
- <span class="keyword">typename</span> <span class="identifier">add_rvalue_reference</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">declval</span><span class="special">();</span> <span class="comment">//noexcept; // as unevaluated operand
+ <span class="keyword">typename</span> <span class="identifier">add_rvalue_reference</span><span class="special"><</span><span class="identifier">T</span><span class="special">>::</span><span class="identifier">type</span> <span class="identifier">declval</span><span class="special">()</span> <span class="identifier">noexcept</span><span class="special">;</span> <span class="comment">// as unevaluated operand
</span>
<span class="special">}</span> <span class="comment">// namespace boost
</span></pre>
@@ -149,7 +145,7 @@
<span class="identifier">decltype</span><span class="special">(</span><span class="keyword">static_cast</span><span class="special"><</span><span class="identifier">To</span><span class="special">>(</span><span class="identifier">declval</span><span class="special"><</span><span class="identifier">From</span><span class="special">>()))</span> <span class="identifier">convert</span><span class="special">(</span><span class="identifier">From</span><span class="special">&&);</span>
</pre>
<p>
- Declares a function template convert which only participats in overloading
+ Declares a function template convert which only participates in overloading
if the type From can be explicitly converted to type To.
</p>
</div>
@@ -158,7 +154,7 @@
<a name="declval.history"></a><a class="link" href="declval.html#declval.history" title="History">History</a>
</h2></div></div></div>
<a name="declval.history.boost_1_50"></a><h4>
-<a name="idp13551456"></a>
+<a name="idp13553216"></a>
<a class="link" href="declval.html#declval.history.boost_1_50">boost 1.50</a>
</h4>
<p>
@@ -171,7 +167,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: April 01, 2012 at 20:13:37 GMT</small></p></td>
+<td align="left"><p><small>Last revised: May 28, 2012 at 18:59:06 GMT</small></p></td>
<td align="right"><div class="copyright-footer"></div></td>
</tr></table>
<hr>
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