diff --git a/doc/reference.qbk b/doc/reference.qbk index dd01a96..cd0234c 100644 --- a/doc/reference.qbk +++ b/doc/reference.qbk @@ -660,7 +660,7 @@ __SPACE__ [: `optional::operator `['unspecified-bool-type]`() const ;`] * [*Returns:] An unspecified value which if used on a boolean context -is equivalent to (`get() != 0`) +is equivalent to (`get_ptr() != 0`) * [*Throws:] Nothing. * [*Example:] `` @@ -697,15 +697,7 @@ __SPACE__ [: `bool optional::is_initialized() const ;`] -* [*Returns: ] `true` if the `optional` is initialized, `false` otherwise. -* [*Throws:] Nothing. -* [*Example:] -`` -optional def ; -assert ( !def.is_initialized() ); -optional opt ( v ) ; -assert ( opt.is_initialized() ); -`` +* [*Deprecated:] Same as `operator `['unspecified-bool-type]`() ;` __SPACE__