diff --git a/doc/html/declval.html b/doc/html/declval.html index 7791057..305cf36 100644 --- a/doc/html/declval.html +++ b/doc/html/declval.html @@ -3,7 +3,7 @@
Copyright © 2008 Howard Hinnant
Copyright © 2009 -2012 Vicente J. Botet Escriba
Copyright © 2009-2012 Vicente + J. Botet Escriba
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -43,13 +44,13 @@template<class T> -T&& declval(); // not used -+T&& declval(); // not used +
as part of the function template declaration
template<class To, class From> -decltype(static_cast<To>(declval<From>())) convert(From&&); +decltype(static_cast<To>(declval<From>())) convert(From&&);
or as part of a class template definition @@ -80,9 +81,9 @@
template<class> class result_of; template<class Fn, class... ArgTypes> -struct result_of<Fn(ArgTypes...)> +struct result_of<Fn(ArgTypes...)> { - typedef decltype(declval<Fn>()(declval<ArgTypes>()...)) type; + typedef decltype(declval<Fn>()(declval<ArgTypes>()...)) type; };
@@ -94,8 +95,8 @@ to
template<class T> -typename std::add_rvalue_reference<T>::type declval(); // not used -+typename std::add_rvalue_reference<T>::type declval(); // not used +
which ensures that we can also use cv void as template parameter. The careful
reader might have noticed that declval()
already exists under the name create() as
@@ -109,7 +110,7 @@
is expected to be part of the daily tool-box of the C++0x programmer.
namespace boost { template <typename T> - typename add_rvalue_reference<T>::type declval() noexcept; // as unevaluated operand - -} // namespace boost -+ typename add_rvalue_reference<T>::type declval() noexcept; // as unevaluated operand + +} // namespace boost +
The library provides the function template declval to simplify the definition of expressions which occur as unevaluated operands. @@ -142,32 +143,33 @@ Example:
template <class To, class From> -decltype(static_cast<To>(declval<From>())) convert(From&&); +decltype(static_cast<To>(declval<From>())) convert(From&&);
Declares a function template convert which only participates in overloading if the type From can be explicitly converted to type To.
- New Features: + Fixes:
-Last revised: March 25, 2012 at 18:26:23 GMT |
+Last revised: November 23, 2013 at 14:11:12 GMT |
string_ref
does.
Let's figure out what happens in this (contrived) example. @@ -166,15 +166,15 @@ copied, but those are cheap operations.
The header file "string_ref.hpp" defines a template boost::basic_string_ref
,
and four specializations - for char
- / wchar_t
/ char16_t
- / char32_t
.
+ / wchar_t
/ char16_t
+ / char32_t
.
#include <boost/utility/string_ref.hpp>
@@ -256,22 +256,22 @@
bool ends_with(basic_string_ref x) const ;
Last revised: January 14, 2013 at 16:24:14 GMT |
+Last revised: November 23, 2013 at 14:12:56 GMT |