mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
[utility] Fixes to value_init docs.
[SVN r85335]
This commit is contained in:
parent
15021632dc
commit
eca8d9f1ef
@ -295,7 +295,7 @@ so for those compilers that need to have such a workaround, based on the
|
||||
<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 @@ so for those compilers that need to have such a workaround, based on the
|
||||
<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 @@ the wrapped object is always performed with the <code>get()</code> idiom:</p>
|
||||
<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 @@ the wrapped object is always performed with the <code>get()</code> idiom:</p>
|
||||
<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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user