mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 15:04:00 +00:00
removed comparison with 0
The concept is supposed to generalize pointers and optional<>, but the latter has abandoned the comparison with 0 a long while ago.
This commit is contained in:
parent
036f6b9107
commit
afd9ab17ec
@ -57,10 +57,7 @@ aliasing.
|
|||||||
</TR>
|
</TR>
|
||||||
<TR>
|
<TR>
|
||||||
<TD VAlign=top>Validity Test</TD>
|
<TD VAlign=top>Validity Test</TD>
|
||||||
<TD VAlign=top> <tt>t</tt><br>
|
<TD VAlign=top> <tt>bool(t)</tt></TD>
|
||||||
<tt>t != 0</tt><br>
|
|
||||||
<tt>!!t</tt>
|
|
||||||
</TD>
|
|
||||||
<TD VAlign=top> bool </TD>
|
<TD VAlign=top> bool </TD>
|
||||||
<TD VAlign=top>If the pointee is valid returns true.<br>
|
<TD VAlign=top>If the pointee is valid returns true.<br>
|
||||||
If the pointee is invalid returns false.</TD>
|
If the pointee is invalid returns false.</TD>
|
||||||
@ -68,9 +65,7 @@ aliasing.
|
|||||||
</TR>
|
</TR>
|
||||||
<TR>
|
<TR>
|
||||||
<TD VAlign=top>Invalidity Test</TD>
|
<TD VAlign=top>Invalidity Test</TD>
|
||||||
<TD VAlign=top> <tt>t == 0</tt><br>
|
<TD VAlign=top> <tt>!t</tt></TD>
|
||||||
<tt>!t</tt>
|
|
||||||
</TD>
|
|
||||||
<TD VAlign=top> bool </TD>
|
<TD VAlign=top> bool </TD>
|
||||||
<TD VAlign=top>If the pointee is valid returns false.<br>
|
<TD VAlign=top>If the pointee is valid returns false.<br>
|
||||||
If the pointee is invalid returns true.</TD>
|
If the pointee is invalid returns true.</TD>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user