From a514ce627d99b9b1308b06a8e8c1fc08a0a7dbcd Mon Sep 17 00:00:00 2001 From: Andrzej Krzemienski Date: Mon, 23 May 2022 22:32:36 +0200 Subject: [PATCH] fix docs build --- doc/23_ref_optional_io.qbk | 18 +++++++++--------- doc/28_ref_optional_semantics.qbk | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/doc/23_ref_optional_io.qbk b/doc/23_ref_optional_io.qbk index a9425d4..2f9b5a2 100644 --- a/doc/23_ref_optional_io.qbk +++ b/doc/23_ref_optional_io.qbk @@ -26,11 +26,11 @@ template template std::basic_ostream& operator<<(std::basic_ostream& out, none_t const&); ``[link reference_operator_ostream_none __GO_TO__]`` - + template std::basic_istream& operator>>(std::basic_istream& in, optional& v); ``[link reference_operator_istream __GO_TO__]`` - + } // namespace boost ``` @@ -43,8 +43,8 @@ template `template ` [br] -\u00A0\u00A0\u00A0\u00A0`std::basic_ostream&` [br] -\u00A0\u00A0\u00A0\u00A0`operator<<(std::basic_ostream& out, optional const& v);` + std::basic_ostream&` [br] + operator<<(std::basic_ostream& out, optional const& v);` * [*Effect:] Outputs an implementation-defined string. The output contains the information about whether the optional object contains a value or not. If `v` contains a value, the output contains result of calling `out << *v`. * [*Returns:] `out`. @@ -53,8 +53,8 @@ __SPACE__ [#reference_operator_ostream_none] `template ` [br] -\u00A0\u00A0\u00A0\u00A0`std::basic_ostream&` [br] -\u00A0\u00A0\u00A0\u00A0`operator<<(std::basic_ostream& out, none_t);` + std::basic_ostream&` [br] + operator<<(std::basic_ostream& out, none_t);` * [*Effect:] Outputs an implementation-defined string. * [*Returns:] `out`. @@ -63,11 +63,11 @@ __SPACE__ [#reference_operator_istream] `template ` [br] -\u00A0\u00A0\u00A0\u00A0`std::basic_ostream&` [br] -\u00A0\u00A0\u00A0\u00A0`operator>>(std::basic_istream& in, optional& v);` + std::basic_ostream&` [br] + operator>>(std::basic_istream& in, optional& v);` * [*Requires:] `T` is __SGI_DEFAULT_CONSTRUCTIBLE__ and __MOVE_CONSTRUCTIBLE__. -* [*Effect:] Reads the value of optional object from `in`. If the string representation indicates that the optional object should contain a value, `v` contains a value and its contained value is obtained as if by default-constructing an object `o` of type `T` and then calling `in >> o`; otherwise `v` does not contain a value, and the previously contained value (if any) has been destroyed. +* [*Effect:] Reads the value of optional object from `in`. If the string representation indicates that the optional object should contain a value, `v` contains a value and its contained value is obtained as if by default-constructing an object `o` of type `T` and then calling `in >> o`; otherwise `v` does not contain a value, and the previously contained value (if any) has been destroyed. * [*Returns:] `out`. [endsect] diff --git a/doc/28_ref_optional_semantics.qbk b/doc/28_ref_optional_semantics.qbk index d14e7d9..8e2159f 100644 --- a/doc/28_ref_optional_semantics.qbk +++ b/doc/28_ref_optional_semantics.qbk @@ -1429,7 +1429,7 @@ struct hash > ; The specialization `hash>`` is enabled if and only if `hash> is enabled. When enabled, for an object `o` -of type `optional``, if `o.has_­value() == true`, then `hash>()(o)` +of type `optional`, if `o.has_­value() == true`, then `hash>()(o)` evaluates to the same value as `hash>()(*o)``; otherwise it evaluates to an unspecified value. The member functions are not guaranteed to be `noexcept`.