Skip to content

Commit 6262bec

Browse files
author
mtx48109
committed
cpp formatting review pr17
1 parent 4dd72c1 commit 6262bec

30 files changed

Lines changed: 62 additions & 78 deletions

docs/cpp/exception-handling-differences.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public:
7373
return nSE;
7474
}
7575
};
76-
7776
```
7877
7978
To use this class, you install a custom C exception translation function that is called by the internal exception handling mechanism each time a C exception is thrown. Within your translation function, you can throw any typed exception (perhaps an `SE_Exception` type, or a class type derived from `SE_Exception`) that can be caught by an appropriate matching C++ **catch** handler. The translation function can simply return, which indicates that it did not handle the exception. If the translation function itself raises a C exception, [terminate](../c-runtime-library/reference/terminate-crt.md) is called.
@@ -136,5 +135,5 @@ Caught a __try exception with SE_Exception.
136135
nSE = 0xc0000094
137136
```
138137

139-
## See Also
138+
## See also
140139
[Mixing C (Structured) and C++ Exceptions](../cpp/mixing-c-structured-and-cpp-exceptions.md)

docs/cpp/exception-handling-in-visual-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ An exception is an error condition, possibly outside the program's control, that
3636

3737
For information about exception handling on x64 processors, see [Exception Handling (x64)](../build/exception-handling-x64.md).
3838

39-
## See Also
39+
## See also
4040
[C++ Language Reference](../cpp/cpp-language-reference.md)

docs/cpp/exception-specifications-throw-cpp.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ About to throw 1
123123
in handler
124124
```
125125

126-
## See Also
127-
128-
[try, throw, and catch Statements (C++)](../cpp/try-throw-and-catch-statements-cpp.md)
126+
## See also
127+
[try, throw, and catch Statements (C++)](../cpp/try-throw-and-catch-statements-cpp.md)
129128
[C++ Exception Handling](../cpp/cpp-exception-handling.md)

docs/cpp/exceptions-and-stack-unwinding-in-cpp.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,4 @@ int main()
105105
    Exiting main.
106106
107107
*/
108-
109108
```

docs/cpp/exit-function.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ ms.author: "mblome"
1313
ms.workload: ["cplusplus"]
1414
---
1515
# exit Function
16-
The `exit` function, declared in the standard include file \<stdlib.h>, terminates a C++ program.
16+
The **exit** function, declared in the standard include file \<stdlib.h>, terminates a C++ program.
1717

18-
The value supplied as an argument to `exit` is returned to the operating system as the program's return code or exit code. By convention, a return code of zero means that the program completed successfully.
18+
The value supplied as an argument to **exit** is returned to the operating system as the program's return code or exit code. By convention, a return code of zero means that the program completed successfully.
1919

2020
> [!NOTE]
2121
> You can use the constants EXIT_FAILURE and EXIT_SUCCESS, defined in \<stdlib.h>, to indicate success or failure of your program.
2222
23-
Issuing a **return** statement from the `main` function is equivalent to calling the `exit` function with the return value as its argument.
23+
Issuing a **return** statement from the `main` function is equivalent to calling the **exit** function with the return value as its argument.
2424

2525
For more information, see [exit](../c-runtime-library/reference/exit-exit-exit.md) in the *Run-Time Library Reference*.
2626

27-
## See Also
27+
## See also
2828
[Program Termination](../cpp/program-termination.md)

docs/cpp/explicit-instantiation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,5 @@ extern template MyStack<int, 6>::MyStack( void );
4747
> [!NOTE]
4848
> The **extern** keyword in the specialization only applies to member functions defined outside of the body of the class. Functions defined inside the class declaration are considered inline functions and are always instantiated.
4949

50-
## See Also
50+
## See also
5151
[Function Templates](../cpp/function-templates.md)

docs/cpp/explicit-overrides-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,5 +113,5 @@ In CMyClass::IMyInt2::mf2()
113113
In CMyClass::IMyInt2::mf2(int)
114114
```
115115

116-
## See Also
116+
## See also
117117
[Inheritance](../cpp/inheritance-cpp.md)

docs/cpp/explicit-specialization-of-function-templates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ int main()
4646
}
4747
```
4848

49-
## See Also
50-
[Function Templates](../cpp/function-templates.md)
49+
## See also
50+
[Function Templates](../cpp/function-templates.md)

docs/cpp/explicit-type-conversion-operator-parens.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,12 @@ d = float( i );
9494
Explicit type conversions can also be specified using the "cast" syntax. The previous example, rewritten using the cast syntax, is:
9595

9696
```cpp
97-
9897
d = (float)i;
99-
10098
```
10199

102100
Both cast and function-style conversions have the same results when converting from single values. However, in the function-style syntax, you can specify more than one argument for conversion. This difference is important for user-defined types. Consider a `Point` class and its conversions:
103101

104102
```cpp
105-
106103
struct Point
107104
{
108105
Point( short x, short y ) { _x = x; _y = y; }
@@ -111,7 +108,6 @@ struct Point
111108
};
112109
...
113110
Point pt = Point( 3, 10 );
114-
115111
```
116112
117113
The preceding example, which uses function-style conversion, shows how to convert two values (one for *x* and one for *y*) to the user-defined type `Point`.
@@ -123,6 +119,6 @@ Point pt = Point( 3, 10 );
123119
124120
Type definition within casts is illegal.
125121
126-
## See Also
122+
## See also
127123
[Postfix Expressions](../cpp/postfix-expressions.md)
128124
[C++ Built-in Operators, Precedence and Associativity](../cpp/cpp-built-in-operators-precedence-and-associativity.md)

docs/cpp/explicitly-defaulted-and-deleted-functions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,5 +136,4 @@ template < typename T >
136136
void call_with_true_double_only(T) =delete; //prevent call through type promotion of any T to double from succeeding.
137137
138138
void call_with_true_double_only(double param) { return; } // also define for const double, double&, etc. as needed.
139-
140139
```

0 commit comments

Comments
 (0)