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:
Andrzej Krzemieński 2014-05-29 17:41:56 +02:00
parent 036f6b9107
commit afd9ab17ec

View File

@ -57,10 +57,7 @@ aliasing.
</TR> </TR>
<TR> <TR>
<TD VAlign=top>Validity Test</TD> <TD VAlign=top>Validity Test</TD>
<TD VAlign=top>&nbsp;<tt>t</tt><br> <TD VAlign=top>&nbsp;<tt>bool(t)</tt></TD>
&nbsp;<tt>t != 0</tt><br>
&nbsp;<tt>!!t</tt>
</TD>
<TD VAlign=top>&nbsp;bool </TD> <TD VAlign=top>&nbsp;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>&nbsp;<tt>t == 0</tt><br> <TD VAlign=top>&nbsp;<tt>!t</tt></TD>
&nbsp;<tt>!t</tt>
</TD>
<TD VAlign=top>&nbsp;bool </TD> <TD VAlign=top>&nbsp;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>
@ -161,4 +156,4 @@ so direct usage of relational operators with the implied aliasing of shallow sem
<a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a></p> <a href="http://www.boost.org/LICENSE_1_0.txt">www.boost.org/LICENSE_1_0.txt</a></p>
</BODY> </BODY>
</HTML> </HTML>