Skip to content

Commit 20157bc

Browse files
TylerMSFTTylerMSFT
authored andcommitted
clarify diff with c99
1 parent c4a2fa8 commit 20157bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/cpp/extension-restrict.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Like the **`__declspec` ( [`restrict`](../cpp/restrict.md) )** modifier, the **`
1313

1414
- **`__restrict`** is similar to [`restrict`](../c-language/type-qualifiers.md#restrict) for C starting in C99, but **`__restrict`** can be used in both C++ and C programs.
1515

16-
- When **`__restrict`** is used, the compiler won't propagate the no-alias property of a variable. That is, if you assign a **`__restrict`** variable to a non-**`__restrict`** variable, the compiler will still allow the non-__restrict variable to be aliased. This is different from the behavior of the C99 C language **`restrict`** keyword which does propagate the no-alias property of a variable.
16+
- When **`__restrict`** is used, the compiler won't propagate the no-alias property of a variable. That is, if you assign a **`__restrict`** variable to a non-**`__restrict`** variable, the compiler will still allow the non-__restrict variable to be aliased. This is different from the behavior of the C99 C language **`restrict`** keyword.
1717

1818
Generally, if you want to affect the behavior of an entire function, use **`__declspec (restrict)`** instead of the keyword.
1919

0 commit comments

Comments
 (0)