1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 11:33:24 +02:00

ErrorOr: Be more explicit in the implicit conversion to bool docs

llvm-svn: 221295
This commit is contained in:
Justin Bogner 2014-11-04 21:01:48 +00:00
parent bd371f63c3
commit 03d5784ea1

View File

@ -68,9 +68,9 @@ public:
/// \endcode
///
///
/// An implicit conversion to bool provides a way to check if there was an
/// error. The unary * and -> operators provide pointer like access to the
/// value. Accessing the value when there is an error has undefined behavior.
/// Implicit conversion to bool returns true if there is a usable value. The
/// unary * and -> operators provide pointer like access to the value. Accessing
/// the value when there is an error has undefined behavior.
///
/// When T is a reference type the behaivor is slightly different. The reference
/// is held in a std::reference_wrapper<std::remove_reference<T>::type>, and