Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85335 - branches/release/libs/utility trunk/libs/utility
From: robert.kawulak_at_[hidden]
Date: 2013-08-13 17:39:57


Author: rkawulak
Date: 2013-08-13 17:39:57 EDT (Tue, 13 Aug 2013)
New Revision: 85335
URL: http://svn.boost.org/trac/boost/changeset/85335

Log:
[utility] Fixes to value_init docs.

Text files modified:
   branches/release/libs/utility/value_init.htm | 13 +++++++++++--
   trunk/libs/utility/value_init.htm | 13 +++++++++++--
   2 files changed, 22 insertions(+), 4 deletions(-)

Modified: branches/release/libs/utility/value_init.htm
==============================================================================
--- branches/release/libs/utility/value_init.htm Tue Aug 13 13:07:18 2013 (r85334)
+++ branches/release/libs/utility/value_init.htm 2013-08-13 17:39:57 EDT (Tue, 13 Aug 2013) (r85335)
@@ -295,7 +295,7 @@
 <br> operator T&amp;() { return x ; }
 <br> T const &amp;data() const { return x ; }
 <br> T&amp; data() { return x ; }
-<br> void swap( value_initialized&lt;T&gt;&amp; );
+<br> void swap( value_initialized&amp; );
 <br>
 <br> private :
 <br> <i>unspecified</i> x ;
@@ -313,6 +313,12 @@
 <br> return x.data() ;
 <br>}
 <br>
+<br>template&lt;class T&gt;
+<br>void swap ( value_initialized&lt;T&gt;&amp; lhs, value_initialized&lt;T&gt;&amp; rhs )
+<br>{
+<br> lhs.swap(rhs) ;
+<br>}
+<br>
 <br>} // namespace boost
 <br></pre>
                     
@@ -385,7 +391,7 @@
 <br> operator T&amp;();
 <br> T const &amp;data() const;
 <br> T&amp; data();
-<br> void swap( value_initialized&lt;T&gt;&amp; );
+<br> void swap( initialized&amp; );
 <br>
 <br> private :
 <br> <i>unspecified</i> x ;
@@ -397,6 +403,9 @@
 <br>template&lt;class T&gt;
 <br>T&amp; get ( initialized&lt;T&gt;&amp; x );
 <br>
+<br>template&lt;class T&gt;
+<br>void swap ( initialized&lt;T&gt;&amp; lhs, initialized&lt;T&gt;&amp; rhs );
+<br>
 <br>} // namespace boost
 <br></pre>
 

Modified: trunk/libs/utility/value_init.htm
==============================================================================
--- trunk/libs/utility/value_init.htm Tue Aug 13 13:07:18 2013 (r85334)
+++ trunk/libs/utility/value_init.htm 2013-08-13 17:39:57 EDT (Tue, 13 Aug 2013) (r85335)
@@ -295,7 +295,7 @@
 <br> operator T&amp;() { return x ; }
 <br> T const &amp;data() const { return x ; }
 <br> T&amp; data() { return x ; }
-<br> void swap( value_initialized&lt;T&gt;&amp; );
+<br> void swap( value_initialized&amp; );
 <br>
 <br> private :
 <br> <i>unspecified</i> x ;
@@ -313,6 +313,12 @@
 <br> return x.data() ;
 <br>}
 <br>
+<br>template&lt;class T&gt;
+<br>void swap ( value_initialized&lt;T&gt;&amp; lhs, value_initialized&lt;T&gt;&amp; rhs )
+<br>{
+<br> lhs.swap(rhs) ;
+<br>}
+<br>
 <br>} // namespace boost
 <br></pre>
                     
@@ -385,7 +391,7 @@
 <br> operator T&amp;();
 <br> T const &amp;data() const;
 <br> T&amp; data();
-<br> void swap( value_initialized&lt;T&gt;&amp; );
+<br> void swap( initialized&amp; );
 <br>
 <br> private :
 <br> <i>unspecified</i> x ;
@@ -397,6 +403,9 @@
 <br>template&lt;class T&gt;
 <br>T&amp; get ( initialized&lt;T&gt;&amp; x );
 <br>
+<br>template&lt;class T&gt;
+<br>void swap ( initialized&lt;T&gt;&amp; lhs, initialized&lt;T&gt;&amp; rhs );
+<br>
 <br>} // namespace boost
 <br></pre>
 


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