diff --git a/doc/23_ref_optional_io.qbk b/doc/23_ref_optional_io.qbk index 22b2583..57f0677 100644 --- a/doc/23_ref_optional_io.qbk +++ b/doc/23_ref_optional_io.qbk @@ -41,10 +41,11 @@ template [#reference_operator_ostream] - -`template ` [br] - std::basic_ostream&` [br] - operator<<(std::basic_ostream& out, optional const& v);` +``` +template +std::basic_ostream& +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`. @@ -52,9 +53,11 @@ template __SPACE__ [#reference_operator_ostream_none] -`template ` [br] - std::basic_ostream&` [br] - operator<<(std::basic_ostream& out, none_t);` +``` +template +std::basic_ostream& +operator<<(std::basic_ostream& out, none_t); +``` * [*Effect:] Outputs an implementation-defined string. * [*Returns:] `out`. @@ -62,9 +65,11 @@ __SPACE__ __SPACE__ [#reference_operator_istream] -`template ` [br] - std::basic_ostream&` [br] - operator>>(std::basic_istream& in, optional& v);` +``` +template +std::basic_ostream& +operator>>(std::basic_istream& in, optional& v); +``` * [*Requires:] `T` is __STD_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. diff --git a/doc/28_ref_optional_semantics.qbk b/doc/28_ref_optional_semantics.qbk index 947592d..d3cb6ee 100644 --- a/doc/28_ref_optional_semantics.qbk +++ b/doc/28_ref_optional_semantics.qbk @@ -1428,9 +1428,9 @@ 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)` - evaluates to the same value as `hash>()(*o)`; otherwise it +`hash>` is enabled. When enabled, for an object `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`. diff --git a/doc/Jamfile.v2 b/doc/Jamfile.v2 index 2fc6463..91af84f 100644 --- a/doc/Jamfile.v2 +++ b/doc/Jamfile.v2 @@ -29,20 +29,20 @@ install images : html/images ; - + boostbook standalone : optional : - html:boost.root=../../../.. - html:boost.libraries=../../../../libs/libraries.htm - chapter.autolabel=0 - chunk.section.depth=8 - toc.section.depth=2 - toc.max.depth=2 - generate.section.toc.level=1 - pdf:img.src.path=$(images)/ - pdf:boost.url.prefix=http://www.boost.org/doc/libs/release/libs/optional/doc/html + html:"boost.root=../../../.." + html:"boost.libraries=../../../../libs/libraries.htm" + "chapter.autolabel=0" + "chunk.section.depth=8" + "toc.section.depth=2" + "toc.max.depth=2" + "generate.section.toc.level=1" + pdf:"img.src.path=$(images)/" + pdf:"boost.url.prefix=http://www.boost.org/doc/libs/release/libs/optional/doc/html" docbook:on ;