Skip to content

Commit f7f8be1

Browse files
authored
link fixes and NOTINBUILD fixes in cpp (MicrosoftDocs#95)
1 parent 765f73b commit f7f8be1

38 files changed

+31
-58
lines changed

docs/cpp/additive-operators-plus-and.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,4 @@ for( int i = 0; i < 10; ++i )
132132
## See Also
133133
[Expressions with Binary Operators](../cpp/expressions-with-binary-operators.md)
134134
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
135-
[Addition of Pointer Types](../misc/addition-of-pointer-types.md)
136-
[Subtraction of Pointer Types](../misc/subtraction-of-pointer-types.md)
137135
[C Additive Operators](../c-language/c-additive-operators.md)

docs/cpp/align-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ __declspec( align( # ) ) declarator
5858

5959
You can use `__declspec(align(#))` when you define a `struct`, `union`, or `class`, or when you declare a variable.
6060

61-
The compiler does not guarantee or attempt to preserve the alignment attribute of data during a copy or data transform operation. For example, [memcpy](../c-runtime-library/reference/memcpy-wmemcpy.md) can copy a struct declared with `__declspec(align(#))` to any location. Note that ordinary allocators—for example, [malloc](../c-runtime-library/reference/malloc.md), C++ [operator new](operator-new-cpp.md), and the Win32 allocators—return memory that is usually not sufficiently aligned for `__declspec(align(#))` structures or arrays of structures. To guarantee that the destination of a copy or data transformation operation is correctly aligned, use [_aligned_malloc](../c-runtime-library/reference/aligned-malloc.md), or write your own allocator.
61+
The compiler does not guarantee or attempt to preserve the alignment attribute of data during a copy or data transform operation. For example, [memcpy](../c-runtime-library/reference/memcpy-wmemcpy.md) can copy a struct declared with `__declspec(align(#))` to any location. Note that ordinary allocators—for example, [malloc](../c-runtime-library/reference/malloc.md), C++ [operator new](new-operator-cpp.md), and the Win32 allocators—return memory that is usually not sufficiently aligned for `__declspec(align(#))` structures or arrays of structures. To guarantee that the destination of a copy or data transformation operation is correctly aligned, use [_aligned_malloc](../c-runtime-library/reference/aligned-malloc.md), or write your own allocator.
6262

6363
You cannot specify alignment for function parameters. When data that has an alignment attribute is passed by value on the stack, its alignment is controlled by the calling convention. If data alignment is important in the called function, copy the parameter into correctly aligned memory before use.
6464

docs/cpp/anonymous-class-types.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,3 @@ int main()
113113

114114
### END Microsoft Specific
115115

116-
## See Also
117-
[(NOTINBUILD) Defining Class Types](http://msdn.microsoft.com/en-us/e8c65425-0f3a-4dca-afc2-418c3b1e57da)

docs/cpp/auto-cpp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ auto declarator initializer;
6464

6565
To use the `auto` keyword, use it instead of a type to declare a variable, and specify an initialization expression. In addition, you can modify the `auto` keyword by using specifiers and declarators such as `const`, `volatile`, pointer (`*`), reference (`&`), and rvalue reference `(&&`). The compiler evaluates the initialization expression and then uses that information to deduce the type of the variable.
6666

67-
The initialization expression can be an assignment (equal-sign syntax), a direct initialization (function-style syntax), an [operator new](operator-new-cpp.md) expression, or the initialization expression can be the *for-range-declaration* parameter in a [Range-based for Statement (C++)](../cpp/range-based-for-statement-cpp.md) statement. For more information, see [Initializers](../cpp/initializers.md) and the code examples later in this document.
67+
The initialization expression can be an assignment (equal-sign syntax), a direct initialization (function-style syntax), an [operator new](new-operator-cpp.md) expression, or the initialization expression can be the *for-range-declaration* parameter in a [Range-based for Statement (C++)](../cpp/range-based-for-statement-cpp.md) statement. For more information, see [Initializers](../cpp/initializers.md) and the code examples later in this document.
6868

6969
The `auto` keyword is a placeholder for a type, but it is not itself a type. Therefore, the `auto` keyword cannot be used in casts or operators such as [sizeof](../cpp/sizeof-operator.md) and [typeid](../windows/typeid-cpp-component-extensions.md).
7070

@@ -141,7 +141,7 @@ int main()
141141
|[C3531](../error-messages/compiler-errors-2/compiler-error-c3531.md)|A symbol that is declared with the `auto` keyword must have an initializer.|
142142
|[C3532](../error-messages/compiler-errors-2/compiler-error-c3532.md)|You incorrectly used the `auto` keyword to declare a type. For example, you declared a method return type or an array.|
143143
|[C3533](../error-messages/compiler-errors-2/compiler-error-c3533.md), [C3539](../error-messages/compiler-errors-2/compiler-error-c3539.md)|A parameter or template argument cannot be declared with the `auto` keyword.|
144-
|[C3534](../Topic/Compiler%20Error%20C3534.md)|A symbol that is declared with the `auto` keyword in a `new` expression must have an initializer. For more information, see [operator new](new-operator-cpp.md).|
144+
|[C3534](../error-messages/compiler-errors-2/compiler-error-c3534.md)|A symbol that is declared with the `auto` keyword in a `new` expression must have an initializer. For more information, see [operator new](new-operator-cpp.md).|
145145
|[C3535](../error-messages/compiler-errors-2/compiler-error-c3535.md)|A method or template parameter cannot be declared with the `auto` keyword.|
146146
|[C3536](../error-messages/compiler-errors-2/compiler-error-c3536.md)|A symbol cannot be used before it is initialized. In practice, this means that a variable cannot be used to initialize itself.|
147147
|[C3537](../error-messages/compiler-errors-2/compiler-error-c3537.md)|You cannot cast to a type that is declared with the `auto` keyword.|
@@ -246,7 +246,7 @@ int main()
246246
[/Zc:auto (Deduce Variable Type)](../build/reference/zc-auto-deduce-variable-type.md)
247247
[sizeof Operator](../cpp/sizeof-operator.md)
248248
[typeid](../windows/typeid-cpp-component-extensions.md)
249-
[operator new](operator-new-cpp.md)
249+
[operator new](new-operator-cpp.md)
250250
[Declarations and Definitions](declarations-and-definitions-cpp.md)
251251
[Examples of Lambda Expressions](../cpp/examples-of-lambda-expressions.md)
252252
[Initializers](../cpp/initializers.md)

docs/cpp/auto-keyword.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ auto declarator initializer;
5353

5454
- [auto](../cpp/auto-cpp.md) describes the new definition of the `auto` keyword.
5555

56-
- [(NOTINBUILD)auto Keyword (Storage-Class Specifier)](http://msdn.microsoft.com/en-us/c7d0cecf-393d-4058-a6e6-b39e31d9edb0) describes the original definition of the `auto` keyword.
5756

5857
- [/Zc:auto (Deduce Variable Type)](../build/reference/zc-auto-deduce-variable-type.md) describes the compiler option that tells the compiler which definition of the `auto` keyword to use.
5958

6059
## See Also
61-
[(NOTINBUILD)Storage-Class Specifiers](http://msdn.microsoft.com/en-us/10b3d22d-cb40-450b-994b-08cf9a211b6c)
6260
[Keywords](../cpp/keywords-cpp.md)

docs/cpp/bitwise-and-operator-amp.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,5 @@ int main() {
7575

7676
## See Also
7777
[C++ Built-in Operators, Precedence and Associativity](cpp-built-in-operators-precedence-and-associativity.md)
78-
[C++ Bitwise Operators](../misc/cpp-bitwise-operators.md)
7978
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
8079
[C Bitwise Operators](../c-language/c-bitwise-operators.md)

docs/cpp/bitwise-exclusive-or-operator-hat.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,5 @@ int main() {
7272
## See Also
7373
[C++ Bitwise Operators](../misc/cpp-bitwise-operators.md)
7474
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
75-
[C Bitwise Operators](../c-language/c-bitwise-operators.md)
75+
7676

docs/cpp/bitwise-inclusive-or-operator-pipe.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ int main() {
7575
```
7676

7777
## See Also
78-
[C++ Bitwise Operators](../misc/cpp-bitwise-operators.md)
7978
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)
8079
[C Bitwise Operators](../c-language/c-bitwise-operators.md)
8180

docs/cpp/data-type-ranges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Visual C++ 32-bit and 64-bit compilers recognize the types in the table later in
118118
|unsigned long|4|unsigned long int|0 to 4,294,967,295|
119119
|long long|8|none (but equivalent to __int64)|–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807|
120120
|unsigned long long|8|none (but equivalent to unsigned __int64)|0 to 18,446,744,073,709,551,615|
121-
|enum|varies|none|See [Remarks](#bkmkRemarks) later in this article|
121+
|enum|varies|none| |
122122
|float|4|none|3.4E +/- 38 (7 digits)|
123123
|double|8|none|1.7E +/- 308 (15 digits)|
124124
|long double|same as double|none|Same as double|

docs/cpp/decltype-cpp.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,3 @@ int main()
205205

206206
decltype(auto) requires Visual Studio 2015 or later
207207

208-
## See Also
209-
[(NOTINBUILD)Simple Type Names](http://msdn.microsoft.com/en-us/333f45cb-2c72-4d81-8e59-e346b05f55e3)

0 commit comments

Comments
 (0)