mirror of
https://github.com/boostorg/optional.git
synced 2025-07-19 15:22:07 +02:00
spelling: support
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
committed by
Andrzej Krzemienski
parent
ce500ee436
commit
653ebefbac
@ -233,7 +233,7 @@ __SPACE__
|
|||||||
arguments `std::forward<Args>(args)...`.
|
arguments `std::forward<Args>(args)...`.
|
||||||
* [*Postconditions:] `*this` is initialized.
|
* [*Postconditions:] `*this` is initialized.
|
||||||
* [*Throws:] Any exception thrown by the selected constructor of `T`.
|
* [*Throws:] Any exception thrown by the selected constructor of `T`.
|
||||||
* [*Notes: ] `T` need not be __MOVE_CONSTRUCTIBLE__. On compilers that do not suppor variadic templates or rvalue references, this constuctor is available in limited functionality. For details [link optional_emplace_workaround see here].
|
* [*Notes: ] `T` need not be __MOVE_CONSTRUCTIBLE__. On compilers that do not support variadic templates or rvalue references, this constuctor is available in limited functionality. For details [link optional_emplace_workaround see here].
|
||||||
|
|
||||||
* [*Example:]
|
* [*Example:]
|
||||||
``
|
``
|
||||||
@ -257,7 +257,7 @@ __SPACE__
|
|||||||
* [*Effect:] If `condition` is `true`, initializes the contained value as if direct-non-list-initializing an object of type `T` with the arguments `std::forward<Args>(args)...`.
|
* [*Effect:] If `condition` is `true`, initializes the contained value as if direct-non-list-initializing an object of type `T` with the arguments `std::forward<Args>(args)...`.
|
||||||
* [*Postconditions:] `bool(*this) == condition`.
|
* [*Postconditions:] `bool(*this) == condition`.
|
||||||
* [*Throws:] Any exception thrown by the selected constructor of `T`.
|
* [*Throws:] Any exception thrown by the selected constructor of `T`.
|
||||||
* [*Notes: ] `T` need not be __MOVE_CONSTRUCTIBLE__. On compilers that do not suppor variadic templates or rvalue references, this constuctor is available in limited functionality. For details [link optional_emplace_workaround see here].
|
* [*Notes: ] `T` need not be __MOVE_CONSTRUCTIBLE__. On compilers that do not support variadic templates or rvalue references, this constuctor is available in limited functionality. For details [link optional_emplace_workaround see here].
|
||||||
|
|
||||||
* [*Example:]
|
* [*Example:]
|
||||||
``
|
``
|
||||||
@ -502,7 +502,7 @@ __SPACE__
|
|||||||
* [*Postconditions: ] `*this` is [_initialized].
|
* [*Postconditions: ] `*this` is [_initialized].
|
||||||
* [*Throws:] Whatever the selected `T`'s constructor throws.
|
* [*Throws:] Whatever the selected `T`'s constructor throws.
|
||||||
* [*Exception Safety:] If an exception is thrown during the initialization of `T`, `*this` is ['uninitialized].
|
* [*Exception Safety:] If an exception is thrown during the initialization of `T`, `*this` is ['uninitialized].
|
||||||
* [*Notes:] `T` need not be __MOVE_CONSTRUCTIBLE__ or `MoveAssignable`. On compilers that do not suppor variadic templates or rvalue references, this function is available in limited functionality. For details [link optional_emplace_workaround see here].
|
* [*Notes:] `T` need not be __MOVE_CONSTRUCTIBLE__ or `MoveAssignable`. On compilers that do not support variadic templates or rvalue references, this function is available in limited functionality. For details [link optional_emplace_workaround see here].
|
||||||
* [*Example:]
|
* [*Example:]
|
||||||
``
|
``
|
||||||
T v;
|
T v;
|
||||||
@ -875,7 +875,7 @@ __SPACE__
|
|||||||
[: `template<class R> optional<T&>::optional(R&& r) noexcept;`]
|
[: `template<class R> optional<T&>::optional(R&& r) noexcept;`]
|
||||||
* [*Postconditions:] `bool(*this) == true`; `addressof(**this) == addressof(r)`.
|
* [*Postconditions:] `bool(*this) == true`; `addressof(**this) == addressof(r)`.
|
||||||
* [*Remarks:] Unless `R` is an lvalue reference, the program is ill-formed. This constructor does not participate in overload resolution if `decay<R>` is an instance of `boost::optional`.
|
* [*Remarks:] Unless `R` is an lvalue reference, the program is ill-formed. This constructor does not participate in overload resolution if `decay<R>` is an instance of `boost::optional`.
|
||||||
* [*Notes:] This constructor is declared `explicit` on compilers that do not correctly suport binding to const lvalues of integral types. For more details [link optional_reference_binding see here].
|
* [*Notes:] This constructor is declared `explicit` on compilers that do not correctly support binding to const lvalues of integral types. For more details [link optional_reference_binding see here].
|
||||||
* [*Example:]
|
* [*Example:]
|
||||||
``
|
``
|
||||||
T v;
|
T v;
|
||||||
|
@ -58,7 +58,7 @@
|
|||||||
<li class="listitem">
|
<li class="listitem">
|
||||||
<span class="bold"><strong>Notes:</strong></span> This constructor is declared
|
<span class="bold"><strong>Notes:</strong></span> This constructor is declared
|
||||||
<code class="computeroutput"><span class="keyword">explicit</span></code> on compilers
|
<code class="computeroutput"><span class="keyword">explicit</span></code> on compilers
|
||||||
that do not correctly suport binding to const lvalues of integral types.
|
that do not correctly support binding to const lvalues of integral types.
|
||||||
For more details <a class="link" href="../../dependencies_and_portability/optional_reference_binding.html#optional_reference_binding">see here</a>.
|
For more details <a class="link" href="../../dependencies_and_portability/optional_reference_binding.html#optional_reference_binding">see here</a>.
|
||||||
</li>
|
</li>
|
||||||
<li class="listitem">
|
<li class="listitem">
|
||||||
|
@ -429,7 +429,7 @@
|
|||||||
<li class="listitem">
|
<li class="listitem">
|
||||||
<span class="bold"><strong>Notes: </strong></span> <code class="computeroutput"><span class="identifier">T</span></code>
|
<span class="bold"><strong>Notes: </strong></span> <code class="computeroutput"><span class="identifier">T</span></code>
|
||||||
need not be <code class="computeroutput"><span class="identifier">MoveConstructible</span></code>.
|
need not be <code class="computeroutput"><span class="identifier">MoveConstructible</span></code>.
|
||||||
On compilers that do not suppor variadic templates or rvalue references,
|
On compilers that do not support variadic templates or rvalue references,
|
||||||
this constuctor is available in limited functionality. For details
|
this constuctor is available in limited functionality. For details
|
||||||
<a class="link" href="../../dependencies_and_portability/emplace_operations_in_older_compilers.html#optional_emplace_workaround">see here</a>.
|
<a class="link" href="../../dependencies_and_portability/emplace_operations_in_older_compilers.html#optional_emplace_workaround">see here</a>.
|
||||||
</li>
|
</li>
|
||||||
@ -476,7 +476,7 @@
|
|||||||
<li class="listitem">
|
<li class="listitem">
|
||||||
<span class="bold"><strong>Notes: </strong></span> <code class="computeroutput"><span class="identifier">T</span></code>
|
<span class="bold"><strong>Notes: </strong></span> <code class="computeroutput"><span class="identifier">T</span></code>
|
||||||
need not be <code class="computeroutput"><span class="identifier">MoveConstructible</span></code>.
|
need not be <code class="computeroutput"><span class="identifier">MoveConstructible</span></code>.
|
||||||
On compilers that do not suppor variadic templates or rvalue references,
|
On compilers that do not support variadic templates or rvalue references,
|
||||||
this constuctor is available in limited functionality. For details
|
this constuctor is available in limited functionality. For details
|
||||||
<a class="link" href="../../dependencies_and_portability/emplace_operations_in_older_compilers.html#optional_emplace_workaround">see here</a>.
|
<a class="link" href="../../dependencies_and_portability/emplace_operations_in_older_compilers.html#optional_emplace_workaround">see here</a>.
|
||||||
</li>
|
</li>
|
||||||
@ -1125,7 +1125,7 @@
|
|||||||
<span class="bold"><strong>Notes:</strong></span> <code class="computeroutput"><span class="identifier">T</span></code>
|
<span class="bold"><strong>Notes:</strong></span> <code class="computeroutput"><span class="identifier">T</span></code>
|
||||||
need not be <code class="computeroutput"><span class="identifier">MoveConstructible</span></code>
|
need not be <code class="computeroutput"><span class="identifier">MoveConstructible</span></code>
|
||||||
or <code class="computeroutput"><span class="identifier">MoveAssignable</span></code>.
|
or <code class="computeroutput"><span class="identifier">MoveAssignable</span></code>.
|
||||||
On compilers that do not suppor variadic templates or rvalue references,
|
On compilers that do not support variadic templates or rvalue references,
|
||||||
this function is available in limited functionality. For details <a class="link" href="../../dependencies_and_portability/emplace_operations_in_older_compilers.html#optional_emplace_workaround">see here</a>.
|
this function is available in limited functionality. For details <a class="link" href="../../dependencies_and_portability/emplace_operations_in_older_compilers.html#optional_emplace_workaround">see here</a>.
|
||||||
</li>
|
</li>
|
||||||
<li class="listitem">
|
<li class="listitem">
|
||||||
|
@ -114,7 +114,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Detect suport for defaulting move operations
|
// Detect support for defaulting move operations
|
||||||
// (some older compilers implement rvalue references,
|
// (some older compilers implement rvalue references,
|
||||||
// defaulted functions but move operations are not special members and cannot be defaulted)
|
// defaulted functions but move operations are not special members and cannot be defaulted)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user