$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
From: garcia_at_[hidden]
Date: 2008-07-22 10:55:05
Author: garcia
Date: 2008-07-22 10:55:05 EDT (Tue, 22 Jul 2008)
New Revision: 47689
URL: http://svn.boost.org/trac/boost/changeset/47689
Log:
Added documentation for unwrap_ref.
Text files modified: 
   trunk/libs/bind/doc/ref.xml |    30 ++++++++++++++++++++++++++----          
   1 files changed, 26 insertions(+), 4 deletions(-)
Modified: trunk/libs/bind/doc/ref.xml
==============================================================================
--- trunk/libs/bind/doc/ref.xml	(original)
+++ trunk/libs/bind/doc/ref.xml	2008-07-22 10:55:05 EDT (Tue, 22 Jul 2008)
@@ -59,10 +59,13 @@
   references to function templates (algorithms) that would usually
   take copies of their arguments. It defines the class template
   <code><classname>boost::reference_wrapper<T></classname></code>,
-  the two functions
+  two functions
   <code><functionname>boost::ref</functionname></code> and
   <code><functionname>boost::cref</functionname></code> that return
-  instances of <code>boost::reference_wrapper<T></code>, and the
+  instances of <code>boost::reference_wrapper<T></code>, 
+  a function <code><functionname>boost::unwrap_ref</functionname></code>
+  that unwraps a <code>boost::reference_wrapper<T></code> or
+  returns a reference to any other type of object, and the
   two traits classes
   <code><classname>boost::is_reference_wrapper<T></classname></code>
   and
@@ -90,6 +93,11 @@
   <code>boost::cref(x)</code> returns a
   <code>boost::reference_wrapper<X const>(x)</code>.</para>
 
+  <para>The expression <code>boost::unwrap_ref(x)</code>
+  returns a
+  <code>boost::unwrap_reference<X>::type&</code> where X
+  is the type of x.</para>
+
   <para>The expression
   <code>boost::is_reference_wrapper<T>::value</code>
   is true if T is a <code>reference_wrapper</code>, and
@@ -180,6 +188,19 @@
           <throws><simpara>Does not throw.</simpara></throws>
         </function>
       </free-function-group>
+
+      <free-function-group name="access">
+        <function name="unwrap_ref">
+          <type>unwrap_reference<T>::type&</type>
+          <parameter name="t">
+            <paramtype>T&</paramtype>
+          </parameter>
+
+          <returns><simpara><computeroutput><classname>unwrap_reference</classname><T>::type&(t)</computeroutput></simpara></returns>
+
+          <throws><simpara>Does not throw.</simpara></throws>
+        </function>
+      </free-function-group>
     </class>
 
     <class name="is_reference_wrapper">
@@ -234,7 +255,8 @@
   Peter Dimov because they are generally useful.  Douglas Gregor and
   Dave Abrahams contributed
   <classname>is_reference_wrapper</classname> and
-  <classname>unwrap_reference</classname>.</para>
+  <classname>unwrap_reference</classname>.  Frank Mori Hess and Ronald
+  Garcia contributed <functionname>boost::unwrap_ref</functionname></para>
 </section>
 
-</library>
\ No newline at end of file
+</library>