mirror of
https://github.com/boostorg/optional.git
synced 2025-07-23 00:57:15 +02:00
docs: optional<T> == nont_t requirements
This commit is contained in:
@ -71,6 +71,11 @@
|
||||
In the above example, the meaning of the comparison is 'user chose number
|
||||
2'. If user chose nothing, he didn't choose number 2.
|
||||
</p>
|
||||
<p>
|
||||
In case where <code class="computeroutput"><span class="identifier">optional</span><span class="special"><</span><span class="identifier">T</span><span class="special">></span></code> is
|
||||
compared to <code class="computeroutput"><span class="identifier">none</span></code>, it is not
|
||||
required that <code class="computeroutput"><span class="identifier">T</span></code> be <a href="http://www.sgi.com/tech/stl/EqualityComparable.html" target="_top"><code class="computeroutput"><span class="identifier">EqualityComparable</span></code></a>.
|
||||
</p>
|
||||
<p>
|
||||
In a similar manner, type <code class="computeroutput"><span class="identifier">optional</span><span class="special"><</span><span class="identifier">T</span><span class="special">></span></code>
|
||||
is <a href="http://www.sgi.com/tech/stl/LessThanComparable.html" target="_top"><code class="computeroutput"><span class="identifier">LessThanComparable</span></code></a> whenever <code class="computeroutput"><span class="identifier">T</span></code> is <a href="http://www.sgi.com/tech/stl/LessThanComparable.html" target="_top"><code class="computeroutput"><span class="identifier">LessThanComparable</span></code></a>. The optional
|
||||
|
Reference in New Issue
Block a user