Skip to content

Commit f543e34

Browse files
committed
1769497, incorporated author feedback.
1 parent 54920da commit f543e34

8 files changed

+9
-9
lines changed

docs/cpp/new-operator-cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Specifies type to be allocated; it can be either a built-in or user-defined type
6363
*initializer*<br/>
6464
Provides a value for the initialized object. Initializers cannot be specified for arrays. The **`new`** operator will create arrays of objects only if the class has a default constructor.
6565

66-
## Example: Allocate character array and object
66+
## Example: Allocate and free a character array
6767

6868
The following code example allocates a character array and an object of class `CName` and then frees them.
6969

docs/cpp/overload-resolution-of-function-template-calls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.assetid: a2918748-2cbb-4fc6-a176-e256f120bee4
88

99
A function template can overload nontemplate functions of the same name. In this scenario, function calls are resolved by first using template argument deduction to instantiate the function template with a unique specialization. If template argument deduction fails, the other function overloads are considered to resolve the call. These other overloads, also known as the candidate set, include nontemplate functions and other instantiated function templates. If template argument deduction succeeds, then the generated function is compared with the other functions to determine the best match, following the rules for overload resolution. For more information, see [Function Overloading](function-overloading.md).
1010

11-
## Example: Nontemplate function is chosen
11+
## Example: Choose a nontemplate function
1212

1313
If a nontemplate function is an equally good match to a template function, the nontemplate function is chosen (unless the template arguments were explicitly specified), as in the call `f(1, 1)` in the following example.
1414

docs/cpp/static-assert.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ int main()
7878

7979
In the following example, the **`static_assert`** declaration has block scope. The **`static_assert`** verifies that the size of the VMPage structure is equal to the virtual memory pagesize of the system.
8080

81-
## Example: `static_assert` with block scope
81+
## Example: `static_assert` at block scope
8282

8383
```cpp
8484
#include <sys/param.h> // defines PAGESIZE

docs/error-messages/tool-errors/missing-function-body-or-variable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int main() {
2121
}
2222
```
2323
24-
## Example: Include class function implementation
24+
## Example: Call to an implemented function
2525
2626
In C++, make sure that you include the implementation of a specific function for a class and not just a prototype in the class definition. If you are defining the class outside of the header file, be sure to include the class name before the function (`Classname::memberfunction`).
2727

docs/parallel/concrt/how-to-use-a-message-block-filter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Because the `transformer` object receives only prime numbers, the `transformer`
3232

3333
The `transformer` object now processes only those values that are prime. In the previous example, `transformer` object processes all messages. Therefore, the previous example must receive the same number of messages that it sends. This example uses the result of the [concurrency::send](reference/concurrency-namespace-functions.md#send) function to determine how many messages to receive from the `transformer` object. The `send` function returns **`true`** when the message buffer accepts the message and **`false`** when the message buffer rejects the message. Therefore, the number of times that the message buffer accepts the message matches the count of prime numbers.
3434

35-
## Example: Complete message block filter code sample
35+
## Example: Finished message block filter code sample
3636

3737
The following code shows the complete example. The example calls both the `count_primes` function and the `count_primes_filter` function.
3838

docs/parallel/concrt/how-to-use-exception-handling-to-break-from-a-parallel-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The following example creates a `tree` object and searches it for several values
4040

4141
This example uses the [concurrency::parallel_invoke](reference/concurrency-namespace-functions.md#parallel_invoke) algorithm to search for values in parallel. For more information about this algorithm, see [Parallel Algorithms](../../parallel/concrt/parallel-algorithms.md).
4242

43-
## Example: Complete exception handling code sample
43+
## Example: Finished exception handling code sample
4444

4545
The following complete example uses exception handling to search for values in a basic tree structure.
4646

docs/parallel/concrt/how-to-use-parallel-containers-to-increase-efficiency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The following example shows the `is_prime` function, which determines whether an
1616

1717
[!code-cpp[concrt-carmichael-primes#1](../../parallel/concrt/codesnippet/cpp/how-to-use-parallel-containers-to-increase-efficiency_1.cpp)]
1818

19-
## Example: Compute Carmichael function
19+
## Example: Compute prime and Carmichael numbers
2020

2121
The following example uses the `is_prime` and `is_carmichael` functions to compute the sets of prime and Carmichael numbers. The example uses the [concurrency::parallel_invoke](reference/concurrency-namespace-functions.md#parallel_invoke) and [concurrency::parallel_for](reference/concurrency-namespace-functions.md#parallel_for) algorithms to compute each set in parallel. For more information about parallel algorithms, see [Parallel Algorithms](../../parallel/concrt/parallel-algorithms.md).
2222

@@ -40,7 +40,7 @@ This example prints the prime factors for each Carmichael number if that number
4040

4141
[!code-cpp[concrt-carmichael-primes#4](../../parallel/concrt/codesnippet/cpp/how-to-use-parallel-containers-to-increase-efficiency_4.cpp)]
4242

43-
## Example: Complete parallel container code sample
43+
## Example: Finished parallel container code sample
4444

4545
The following code shows the complete example, which uses parallel containers to compute the prime factors of the Carmichael numbers.
4646

docs/parallel/concrt/how-to-write-a-parallel-for-loop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The following example shows the `parallel_matrix_multiply` function, which uses
2222

2323
This example parallelizes the outer loop only because it performs enough work to benefit from the overhead for parallel processing. If you parallelize the inner loop, you will not receive a gain in performance because the small amount of work that the inner loop performs does not overcome the overhead for parallel processing. Therefore, parallelizing the outer loop only is the best way to maximize the benefits of concurrency on most systems.
2424

25-
## Example: Complete parallel_for loop code sample
25+
## Example: Finished parallel_for loop code sample
2626

2727
The following more complete example compares the performance of the `matrix_multiply` function versus the `parallel_matrix_multiply` function.
2828

0 commit comments

Comments
 (0)