|
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&() { return x ; }
<br> T const &data() const { return x ; }
<br> T& data() { return x ; }
-<br> void swap( value_initialized<T>& );
+<br> void swap( value_initialized& );
<br>
<br> private :
<br> <i>unspecified</i> x ;
@@ -313,6 +313,12 @@
<br> return x.data() ;
<br>}
<br>
+<br>template<class T>
+<br>void swap ( value_initialized<T>& lhs, value_initialized<T>& rhs )
+<br>{
+<br> lhs.swap(rhs) ;
+<br>}
+<br>
<br>} // namespace boost
<br></pre>
@@ -385,7 +391,7 @@
<br> operator T&();
<br> T const &data() const;
<br> T& data();
-<br> void swap( value_initialized<T>& );
+<br> void swap( initialized& );
<br>
<br> private :
<br> <i>unspecified</i> x ;
@@ -397,6 +403,9 @@
<br>template<class T>
<br>T& get ( initialized<T>& x );
<br>
+<br>template<class T>
+<br>void swap ( initialized<T>& lhs, initialized<T>& 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&() { return x ; }
<br> T const &data() const { return x ; }
<br> T& data() { return x ; }
-<br> void swap( value_initialized<T>& );
+<br> void swap( value_initialized& );
<br>
<br> private :
<br> <i>unspecified</i> x ;
@@ -313,6 +313,12 @@
<br> return x.data() ;
<br>}
<br>
+<br>template<class T>
+<br>void swap ( value_initialized<T>& lhs, value_initialized<T>& rhs )
+<br>{
+<br> lhs.swap(rhs) ;
+<br>}
+<br>
<br>} // namespace boost
<br></pre>
@@ -385,7 +391,7 @@
<br> operator T&();
<br> T const &data() const;
<br> T& data();
-<br> void swap( value_initialized<T>& );
+<br> void swap( initialized& );
<br>
<br> private :
<br> <i>unspecified</i> x ;
@@ -397,6 +403,9 @@
<br>template<class T>
<br>T& get ( initialized<T>& x );
<br>
+<br>template<class T>
+<br>void swap ( initialized<T>& lhs, initialized<T>& 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