forked from boostorg/optional
misused "precedence" changed to "precedent"
[SVN r35831]
This commit is contained in:
@ -127,7 +127,7 @@ undefined behavior</i>
|
|||||||
which in our case is either <code>T</code> or <code>nil_t</code>.<br>
|
which in our case is either <code>T</code> or <code>nil_t</code>.<br>
|
||||||
Using the <a href="../../../doc/html/variant.html">Boost.Variant</a> library, this model can be implemented
|
Using the <a href="../../../doc/html/variant.html">Boost.Variant</a> library, this model can be implemented
|
||||||
in terms of <code>boost::variant<T,nil_t></code>.<br>
|
in terms of <code>boost::variant<T,nil_t></code>.<br>
|
||||||
There is precedence for a discriminated union as a model for an optional value: the
|
There is precedent for a discriminated union as a model for an optional value: the
|
||||||
<a href="http://www.haskell.org/"><u>Haskell</u></a> <b>Maybe</b> built-in type constructor.
|
<a href="http://www.haskell.org/"><u>Haskell</u></a> <b>Maybe</b> built-in type constructor.
|
||||||
Thus, a discriminated union <code>T+nil_t</code> serves as a conceptual foundation.</p>
|
Thus, a discriminated union <code>T+nil_t</code> serves as a conceptual foundation.</p>
|
||||||
<p>A <code>variant<T,nil_t></code> follows naturally from the traditional idiom of extending
|
<p>A <code>variant<T,nil_t></code> follows naturally from the traditional idiom of extending
|
||||||
|
Reference in New Issue
Block a user