mirror of
https://github.com/boostorg/optional.git
synced 2025-07-29 12:07:21 +02:00
Fixed documentation for operator<
[SVN r21738]
This commit is contained in:
@ -921,9 +921,9 @@ assert ( optX != optZ ) ;
|
||||
|
||||
<pre>bool operator < ( optional<T> const& x, optional<T> const& y );</pre>
|
||||
<blockquote>
|
||||
<p><b>Returns:</b> If both <b>x</b> and <b>y</b> are initialied, <code>(*x < *y)</code>.
|
||||
If only x or y is initialized, <code>false</code>. If both are uninitialized,
|
||||
<code>false</code>.
|
||||
<p><b>Returns:</b> If <b>y</b> is not initialized, <code>false</code>.
|
||||
If <b>y</b> is initialized and <b>x</b> is not initialized, <code>true</code>.
|
||||
If both <b>x</b> and <b>y</b> are initialized, <code>(*x < *y)</code>.
|
||||
</p>
|
||||
<p><b>Throws:</b> Nothing.</p>
|
||||
<p><b>Notes:</b> Pointers have shallow relational operators while <b>optional</b> has
|
||||
|
Reference in New Issue
Block a user