From b051dd665bac7e3045469ae2f10a0bfb8f178287 Mon Sep 17 00:00:00 2001 From: Robert Kawulak Date: Tue, 13 Aug 2013 21:39:57 +0000 Subject: [PATCH] [utility] Fixes to value_init docs. [SVN r85335] --- value_init.htm | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/value_init.htm b/value_init.htm index 4ae9177..b82792f 100644 --- a/value_init.htm +++ b/value_init.htm @@ -295,7 +295,7 @@ so for those compilers that need to have such a workaround, based on the
operator T&() { return x ; }
T const &data() const { return x ; }
T& data() { return x ; } -
void swap( value_initialized<T>& ); +
void swap( value_initialized& );

private :
unspecified x ; @@ -313,6 +313,12 @@ so for those compilers that need to have such a workaround, based on the
return x.data() ;
}
+
template<class T> +
void swap ( value_initialized<T>& lhs, value_initialized<T>& rhs ) +
{ +
lhs.swap(rhs) ; +
} +

} // namespace boost
@@ -385,7 +391,7 @@ the wrapped object is always performed with the get() idiom:


operator T&();
T const &data() const;
T& data(); -
void swap( value_initialized<T>& ); +
void swap( initialized& );

private :
unspecified x ; @@ -397,6 +403,9 @@ the wrapped object is always performed with the get() idiom:


template<class T>
T& get ( initialized<T>& x );
+
template<class T> +
void swap ( initialized<T>& lhs, initialized<T>& rhs ); +

} // namespace boost