dlr bug
[mcs.git] / docs / ecma334 / 14.6.3.xml
blob4cb91ff3d8ac987638143226c03907838f1fae74
1 <?xml version="1.0"?>
2 <clause number="14.6.3" title="Logical negation operator">
3   <paragraph>For an operation of the form !x, unary operator overload resolution (<hyperlink>14.2.3</hyperlink>) is applied to select a specific operator implementation. The operand is converted to the parameter type of the selected operator, and the type of the result is the return type of the operator. Only one predefined logical negation operator exists: <code_example><![CDATA[
4 bool operator !(bool x);  
5 ]]></code_example></paragraph>
6   <paragraph>This operator computes the logical negation of the operand: If the operand is true, the result is false. If the operand is false, the result is true. </paragraph>
7 </clause>