You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cpp/equality-operators-equal-equal-and-exclpt-equal.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ expression != expression
25
25
26
26
The equality operators, equal to (`==`) and not equal to (`!=`), have lower precedence than the relational operators, but they behave similarly. The result type for these operators is **bool**.
27
27
28
-
The equal-to operator (`==`) returns TRUE (1) if both operands have the same value; otherwise, it returns FALSE (0). The not-equal-to operator (`!=`) returns TRUE if the operands do not have the same value; otherwise, it returns FALSE.
28
+
The equal-to operator (`==`) returns **true** (1) if both operands have the same value; otherwise, it returns **false** (0). The not-equal-to operator (`!=`) returns **true** if the operands do not have the same value; otherwise, it returns **false**.
29
29
30
30
## Operator Keyword for !=
31
31
The `not_eq` operator is the text equivalent of `!=`. There are two ways to access the `not_eq` operator in your programs: include the header file `iso646.h`, or compile with the [/Za](../build/reference/za-ze-disable-language-extensions.md) (Disable language extensions) compiler option.
Copy file name to clipboardExpand all lines: docs/cpp/event-handling-in-com.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,9 +142,9 @@ MyHandler2 was called with value 123.
142
142
## <aname="vcconeventhandlingincomanchorlayoutdependentcomevents"></a> Layout Dependent COM Events
143
143
Layout dependency is only an issue for COM programming. In native and managed event handling, the signatures (return type, calling convention, and arguments) of the handlers must match their events, but the handler names do not have to match their events.
144
144
145
-
However, in COM event handling, when you set the *layout_dependent* parameter of `event_receiver` to TRUE, the name and signature matching is enforced. This means that the names and signatures of the handlers in the event receiver must exactly match the names and signatures of the events to which they are hooked.
145
+
However, in COM event handling, when you set the *layout_dependent* parameter of `event_receiver` to **true**, the name and signature matching is enforced. This means that the names and signatures of the handlers in the event receiver must exactly match the names and signatures of the events to which they are hooked.
146
146
147
-
When *layout_dependent* is set to FALSE, the calling convention and storage class (virtual, static, and so on) can be mixed and matched between the firing event method and the hooking methods (its delegates). It is slightly more efficient to have *layout_dependent*=TRUE.
147
+
When *layout_dependent* is set to **false**, the calling convention and storage class (virtual, static, and so on) can be mixed and matched between the firing event method and the hooking methods (its delegates). It is slightly more efficient to have *layout_dependent*=**true**.
148
148
149
149
For example, suppose `IEventSource` is defined to have the following methods:
Copy file name to clipboardExpand all lines: docs/cpp/examples-of-lambda-expressions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,7 @@ int main()
123
123
```
124
124
125
125
### Example 2
126
-
This example passes a lambda expression as an argument to the `find_if` function. The lambda expression returns TRUE if its parameter is an even number.
126
+
This example passes a lambda expression as an argument to the `find_if` function. The lambda expression returns **true** if its parameter is an even number.
Copy file name to clipboardExpand all lines: docs/cpp/false-cpp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ ms.author: "mblome"
13
13
ms.workload: ["cplusplus"]
14
14
---
15
15
# false (C++)
16
-
The keyword is one of the two values for a variable of type [bool](../cpp/bool-cpp.md) or a conditional expression (a conditional expression is now a TRUE Boolean expression). For example, if `i` is a variable of type **bool**, the `i = false;` statement assigns FALSE to `i`.
16
+
The keyword is one of the two values for a variable of type [bool](../cpp/bool-cpp.md) or a conditional expression (a conditional expression is now a **true** Boolean expression). For example, if `i` is a variable of type **bool**, the `i = false;` statement assigns **false** to `i`.
Copy file name to clipboardExpand all lines: docs/cpp/functions-cpp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ Optional parts of a function declaration are:
100
100
101
101
For more information, see [Inline Functions](../cpp/inline-functions-cpp.md).
102
102
103
-
1. A **noexcept** expression, which specifies whether or not the function can throw an exception. In the following example, the function does not throw an exception if the `is_pod` expression evaluates to TRUE.
103
+
1. A **noexcept** expression, which specifies whether or not the function can throw an exception. In the following example, the function does not throw an exception if the `is_pod` expression evaluates to **true**.
Copy file name to clipboardExpand all lines: docs/cpp/fundamental-types-cpp.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,17 +29,17 @@ Fundamental types in C++ are divided into three categories: integral, floating p
29
29
30
30
|Category|Type|Contents|
31
31
|--------------|----------|--------------|
32
-
|Integral|**char**|Type **char** is an integral type that usually contains members of the basic execution character set — By default, this is ASCII in Microsoft C++.<br /><br /> The C++ compiler treats variables of type **char**, **signed****char**, and **unsigned****char** as having different types. Variables of type **char** are promoted to **int** as if they are type **signed****char** by default, unless the /J compilation option is used. In this case they are treated as type **unsigned****char** and are promoted to **int** without sign extension.|
33
-
||**bool**|Type **bool** is an integral type that can have one of the two values TRUE or FALSE. Its size is unspecified.|
34
-
||**short**|Type **short****int** (or simply **short**) is an integral type that is larger than or equal to the size of type **char**, and shorter than or equal to the size of type **int**.<br /><br /> Objects of type **short** can be declared as **signed****short** or **unsigned short**. **Signed short** is a synonym for **short**.|
35
-
||**int**|Type **int** is an integral type that is larger than or equal to the size of type **short****int**, and shorter than or equal to the size of type **long**.<br /><br /> Objects of type **int** can be declared as **signed****int** or **unsigned****int**. **Signed****int** is a synonym for **int**.|
32
+
|Integral|**char**|Type **char** is an integral type that usually contains members of the basic execution character set — By default, this is ASCII in Microsoft C++.<br /><br /> The C++ compiler treats variables of type **char**, **signedchar**, and **unsignedchar** as having different types. Variables of type **char** are promoted to **int** as if they are type **signedchar** by default, unless the /J compilation option is used. In this case they are treated as type **unsignedchar** and are promoted to **int** without sign extension.|
33
+
||**bool**|Type **bool** is an integral type that can have one of the two values **true** or **false**. Its size is unspecified.|
34
+
||**short**|Type **shortint** (or simply **short**) is an integral type that is larger than or equal to the size of type **char**, and shorter than or equal to the size of type **int**.<br /><br /> Objects of type **short** can be declared as **signedshort** or **unsigned short**. **Signed short** is a synonym for **short**.|
35
+
||**int**|Type **int** is an integral type that is larger than or equal to the size of type **shortint**, and shorter than or equal to the size of type **long**.<br /><br /> Objects of type **int** can be declared as **signedint** or **unsignedint**. **Signedint** is a synonym for **int**.|
36
36
||**__int8**, **__int16**, **__int32**, **__int64**|Sized integer `__int n`, where `n` is the size, in bits, of the integer variable. **__int8**, **__int16**, **__int32** and **__int64** are Microsoft-specific keywords. Not all types are available on all architectures. (**__int128** is not supported.)|
37
-
||**long**|Type **long** (or **long****int**) is an integral type that is larger than or equal to the size of type **int**.<br /><br /> Objects of type **long** can be declared as **signed****long** or **unsigned****long**. **Signed****long** is a synonym for **long**.|
38
-
||**long****long**|Larger than an unsigned **long**.<br /><br /> Objects of type **long long** can be declared as **signed****long long** or **unsigned****long long**. **signed****long long** is a synonym for **long long**.|
37
+
||**long**|Type **long** (or **longint**) is an integral type that is larger than or equal to the size of type **int**.<br /><br /> Objects of type **long** can be declared as **signedlong** or **unsignedlong**. **Signedlong** is a synonym for **long**.|
38
+
||**longlong**|Larger than an unsigned **long**.<br /><br /> Objects of type **long long** can be declared as **signedlong long** or **unsignedlong long**. **signedlong long** is a synonym for **long long**.|
39
39
||**wchar_t**, **__wchar_t**|A variable of type **wchar_t** designates a wide-character or multibyte character type. By default, **wchar_t** is a native type, but you can use [/Zc:wchar_t-](../build/reference/zc-wchar-t-wchar-t-is-native-type.md) to make **wchar_t** a typedef for **unsigned short**. The **__wchar_t** type is a Microsoft-specific synonym for the native **wchar_t** type.<br /><br /> Use the L prefix before a character or string literal to designate the wide-character type.|
40
40
|Floating point|**float**|Type **float** is the smallest floating point type.|
41
-
||**double**|Type **double** is a floating point type that is larger than or equal to type **float**, but shorter than or equal to the size of type **long****double**.<br /><br /> Microsoft specific: The representation of **long double** and **double** is identical. However, **long double** and **double** are separate types.|
42
-
||**long double**|Type **long****double** is a floating point type that is larger than or equal to type **double**.|
41
+
||**double**|Type **double** is a floating point type that is larger than or equal to type **float**, but shorter than or equal to the size of type **longdouble**.<br /><br /> Microsoft specific: The representation of **long double** and **double** is identical. However, **long double** and **double** are separate types.|
42
+
||**long double**|Type **longdouble** is a floating point type that is larger than or equal to type **double**.|
Copy file name to clipboardExpand all lines: docs/cpp/goto-statement-cpp.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ goto identifier;
28
28
29
29
It is good programming style to use the **break**, **continue**, and **return** statements instead of the **goto** statement whenever possible. However, because the **break** statement exits from only one level of a loop, you might have to use a **goto** statement to exit a deeply nested loop.
30
30
31
-
For more information about labels and the **goto** statement, see [Labeled Statements](../cpp/labeled-statements.md) and [Using Labels with the goto Statement](http://msdn.microsoft.com/en-us/6cd7c31a-9822-4241-8566-f79f51be48fe).
31
+
For more information about labels and the **goto** statement, see [Labeled Statements](../cpp/labeled-statements.md) and [Using Labels with the goto Statement](http://msdn.microsoft.com/6cd7c31a-9822-4241-8566-f79f51be48fe).
32
32
33
33
## Example
34
34
In this example, a **goto** statement transfers control to the point labeled `stop` when `i` equals 3.
Copy file name to clipboardExpand all lines: docs/cpp/hook.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ long __hook(
42
42
- Managed events: *SourceClass* is the event source class and *EventMethod* is the event.
43
43
44
44
*interface*
45
-
The interface name being hooked to *receiver*, only for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is TRUE.
45
+
The interface name being hooked to *receiver*, only for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is **true**.
46
46
47
47
*source*
48
48
A pointer to an instance of the event source. Depending on the code `type` specified in `event_receiver`, *source* can be one of the following:
@@ -71,7 +71,7 @@ long __hook(
71
71
## Remarks
72
72
Use the intrinsic function **__hook** in an event receiver to associate or hook a handler method with an event method. The specified handler is then called when the source raises the specified event. You can hook several handlers to a single event or hook several events to a single handler.
73
73
74
-
There are two forms of **__hook**. You can use the first (four-argument) form in most cases, specifically, for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is FALSE.
74
+
There are two forms of **__hook**. You can use the first (four-argument) form in most cases, specifically, for COM event receivers in which the *layout_dependent* parameter of the [event_receiver](../windows/event-receiver.md) attribute is **false**.
75
75
76
76
In these cases you do not need to hook all methods in an interface before firing an event on one of the methods; only the method handling the event needs to be hooked. You can use the second (two-argument) form of **__hook** only for a COM event receiver in which *layout_dependent***=true**.
0 commit comments