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/standard-library/negative-binomial-distribution-class.md
+3-2Lines changed: 3 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -46,15 +46,16 @@ public:
46
46
result_type min() const;
47
47
result_type max() const;
48
48
};
49
+
```
49
50
50
51
### Parameters
51
52
52
53
*IntType*
53
-
The integer result type, defaults to `int`. For possible types, see [\<random>](../standard-library/random.md).
54
+
The integer result type, defaults to **int**. For possible types, see [\<random>](../standard-library/random.md).
54
55
55
56
## Remarks
56
57
57
-
The template class describes a distribution that produces values of a user-specified integral type, or type `int` if none is provided, distributed according to the Negative Binomial Distribution discrete probability function. The following table links to articles about individual members.
58
+
The template class describes a distribution that produces values of a user-specified integral type, or type **int** if none is provided, distributed according to the Negative Binomial Distribution discrete probability function. The following table links to articles about individual members.
0 on the first call and the previous `new_handler` on subsequent calls.
47
47
48
48
### Remarks
49
49
50
-
The function stores `Pnew` in a static [new handler](../standard-library/new-typedefs.md#new_handler) pointer that it maintains, then returns the value previously stored in the pointer. The new handler is used by [operator new](../standard-library/new-operators.md#op_new)(**size_t**).
50
+
The function stores *Pnew* in a static [new handler](../standard-library/new-typedefs.md#new_handler) pointer that it maintains, then returns the value previously stored in the pointer. The new handler is used by [operator new](../standard-library/new-operators.md#op_new)(**size_t**).
The pointer whose value is to be rendered invalid by the deletion.
34
34
35
35
### Remarks
36
36
37
-
The first function is called by a delete expression to render the value of `ptr` invalid. The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of `ptr` that is null or that was returned by an earlier call to [operator new](../standard-library/new-operators.md#op_new)(**size_t**).
37
+
The first function is called by a delete expression to render the value of *ptr* invalid. The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of *ptr* that is null or that was returned by an earlier call to [operator new](../standard-library/new-operators.md#op_new)(**size_t**).
38
38
39
-
The default behavior for a null value of `ptr` is to do nothing. Any other value of `ptr` must be a value returned earlier by a call as previously described. The default behavior for such a nonnull value of `ptr` is to reclaim storage allocated by the earlier call. It is unspecified under what conditions part or all of such reclaimed storage is allocated by a subsequent call to `operator new`(**size_t**), or to any of `calloc`( **size_t**), `malloc`( **size_t**), or `realloc`( **void\***, **size_t**).
39
+
The default behavior for a null value of *ptr* is to do nothing. Any other value of *ptr* must be a value returned earlier by a call as previously described. The default behavior for such a nonnull value of *ptr* is to reclaim storage allocated by the earlier call. It is unspecified under what conditions part or all of such reclaimed storage is allocated by a subsequent call to `operator new`(**size_t**), or to any of `calloc`( **size_t**), `malloc`( **size_t**), or `realloc`( **void\***, **size_t**).
40
40
41
41
The second function is called by a placement delete expression corresponding to a new expression of the form **new**( **std::size_t**). It does nothing.
42
42
43
-
The third function is called by a placement delete expression corresponding to a new expression of the form **new**( **std::size_t**, **conststd::nothrow_t&**). The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of `ptr` that is null or that was returned by an earlier call to `operator new`( **size_t**). The default behavior is to evaluate **delete**(`ptr`).
43
+
The third function is called by a placement delete expression corresponding to a new expression of the form **new**( **std::size_t**, **conststd::nothrow_t&**). The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of `ptr` that is null or that was returned by an earlier call to `operator new`( **size_t**). The default behavior is to evaluate **delete**(`ptr`).
44
44
45
45
### Example
46
46
47
-
See [operator new](../standard-library/new-operators.md#op_new) for an example that use `operator delete`.
47
+
See [operator new](../standard-library/new-operators.md#op_new) for an example that use **operator delete**.
The pointer whose value is to be rendered invalid by the deletion.
67
67
68
68
### Remarks
69
69
70
-
The first function is called by an `delete[]` expression to render the value of `ptr` invalid. The function is replaceable because the program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of `ptr` that is null or that was returned by an earlier call to [operator new[]](../standard-library/new-operators.md#op_new_arr)(**size_t**). The default behavior for a null value of `ptr` is to do nothing. Any other value of `ptr` must be a value returned earlier by a call as previously described. The default behavior for such a nonnull value of `ptr` is to reclaim storage allocated by the earlier call. It is unspecified under what conditions part or all of such reclaimed storage is allocated by a subsequent call to [operator new](../standard-library/new-operators.md#op_new)(**size_t**), or to any of `calloc`(**size_t**), `malloc`(**size_t**), or `realloc`( **void\***, **size_t**).
70
+
The first function is called by an `delete[]` expression to render the value of *ptr* invalid. The function is replaceable because the program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of *ptr* that is null or that was returned by an earlier call to [operator new[]](../standard-library/new-operators.md#op_new_arr)(**size_t**). The default behavior for a null value of *ptr* is to do nothing. Any other value of *ptr* must be a value returned earlier by a call as previously described. The default behavior for such a nonnull value of *ptr* is to reclaim storage allocated by the earlier call. It is unspecified under what conditions part or all of such reclaimed storage is allocated by a subsequent call to [operator new](../standard-library/new-operators.md#op_new)(**size_t**), or to any of `calloc`(**size_t**), `malloc`(**size_t**), or `realloc`( **void\***, **size_t**).
71
71
72
-
The second function is called by a placement `delete[]` expression corresponding to a `new[]` expression of the form `new[]`(**std::size_t**). It does nothing.
72
+
The second function is called by a placement `delete[]` expression corresponding to a `new[]` expression of the form `new[]`(**std::size_t**). It does nothing.
73
73
74
-
The third function is called by a placement delete expression corresponding to a `new[]` expression of the form `new[]`( **std::size_t**, **const std::nothrow_t&**). The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of `ptr` that is null or that was returned by an earlier call to operator `new[]`(**size_t**). The default behavior is to evaluate `delete[]`( `ptr`).
74
+
The third function is called by a placement delete expression corresponding to a `new[]` expression of the form `new[]`( **std::size_t**, **const std::nothrow_t&**). The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is to accept a value of *ptr* that is null or that was returned by an earlier call to operator `new[]`(**size_t**). The default behavior is to evaluate `delete[]`( `ptr`).
A pointer to the lowest byte address of the newly-allocated storage. Or `ptr.`
104
+
A pointer to the lowest byte address of the newly-allocated storage. Or *ptr*.
105
105
106
106
### Remarks
107
107
@@ -115,21 +115,21 @@ The required behavior of a new handler is to perform one of the following operat
115
115
116
116
- Make more storage available for allocation and then return.
117
117
118
-
- Call either **abort** or **exit**(`int`).
118
+
- Call either **abort** or **exit**(`int`).
119
119
120
120
- Throw an object of type **bad_alloc.**
121
121
122
122
The default behavior of a [new handler](../standard-library/new-typedefs.md#new_handler) is to throw an object of type `bad_alloc`. A null pointer designates the default new handler.
123
123
124
-
The order and contiguity of storage allocated by successive calls to `operator new`(**size_t**) is unspecified, as are the initial values stored there.
124
+
The order and contiguity of storage allocated by successive calls to `operator new`(**size_t**) is unspecified, as are the initial values stored there.
125
125
126
126
The second function is called by a placement new expression to allocate `count` bytes of storage suitably aligned to represent any object of that size. The program can define an alternate function with this function signature that replaces the default version defined by the C++ Standard Library and so is replaceable.
127
127
128
-
The default behavior is to return `operator new`(`count`) if that function succeeds. Otherwise, it returns a null pointer.
128
+
The default behavior is to return `operator new`(`count`) if that function succeeds. Otherwise, it returns a null pointer.
129
129
130
130
The third function is called by a placement **new** expression, of the form **new** ( *args*) T. Here, *args* consists of a single object pointer. This can be useful for constructing an object at a known address. The function returns *ptr*.
131
131
132
-
To free storage allocated by `operator new`, call [operator delete](../standard-library/new-operators.md#op_delete).
132
+
To free storage allocated by **operator new**, call [operator delete](../standard-library/new-operators.md#op_delete).
133
133
134
134
For information on throwing or nonthrowing behavior of new, see [The new and delete Operators](../cpp/new-and-delete-operators.md).
The number of bytes of storage to be allocated for the array object.
197
197
198
-
`ptr`
198
+
*ptr*
199
199
The pointer to be returned.
200
200
201
201
### Return Value
202
202
203
-
A pointer to the lowest byte address of the newly-allocated storage. Or `ptr.`
203
+
A pointer to the lowest byte address of the newly-allocated storage. Or *ptr*.
204
204
205
205
### Remarks
206
206
207
-
The first function is called by a `new[]` expression to allocate `count` bytes of storage suitably aligned to represent any array object of that size or smaller. The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is the same as for [operator new](../standard-library/new-operators.md#op_new)(**size_t**). The default behavior is to return `operator new`( `count`).
207
+
The first function is called by a `new[]` expression to allocate `count` bytes of storage suitably aligned to represent any array object of that size or smaller. The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The required behavior is the same as for [operator new](../standard-library/new-operators.md#op_new)(**size_t**). The default behavior is to return `operator new`( `count`).
208
208
209
-
The second function is called by a placement `new[]` expression to allocate `count` bytes of storage suitably aligned to represent any array object of that size. The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The default behavior is to return **operatornew**(`count`) if that function succeeds. Otherwise, it returns a null pointer.
209
+
The second function is called by a placement `new[]` expression to allocate `count` bytes of storage suitably aligned to represent any array object of that size. The program can define a function with this function signature that replaces the default version defined by the C++ Standard Library. The default behavior is to return **operatornew**(`count`) if that function succeeds. Otherwise, it returns a null pointer.
210
210
211
211
The third function is called by a placement `new[]` expression, of the form **new** ( *args*) **T**[**N**]. Here, *args* consists of a single object pointer. The function returns `ptr`.
Copy file name to clipboardExpand all lines: docs/standard-library/new.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ Some of the functions declared in this header are replaceable. The implementatio
31
31
32
32
|||
33
33
|-|-|
34
-
|[nothrow](../standard-library/new-functions.md#nothrow)|Provides an object to be used as an argument for the `nothrow` versions of **new** and **delete**.|
34
+
|[nothrow](../standard-library/new-functions.md#nothrow)|Provides an object to be used as an argument for the **nothrow** versions of **new** and **delete**.|
Copy file name to clipboardExpand all lines: docs/standard-library/normal-distribution-class.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -51,18 +51,18 @@ public:
51
51
### Parameters
52
52
53
53
*RealType*
54
-
The floating-point result type, defaults to `double`. For possible types, see [\<random>](../standard-library/random.md).
54
+
The floating-point result type, defaults to **double**. For possible types, see [\<random>](../standard-library/random.md).
55
55
56
56
## Remarks
57
57
58
-
The template class describes a distribution that produces values of a user-specified integral type, or type `double` if none is provided, distributed according to the Normal Distribution. The following table links to articles about individual members.
58
+
The template class describes a distribution that produces values of a user-specified integral type, or type **double** if none is provided, distributed according to the Normal Distribution. The following table links to articles about individual members.
Copy file name to clipboardExpand all lines: docs/standard-library/not-equal-to-struct.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.workload: ["cplusplus"]
14
14
---
15
15
# not_equal_to Struct
16
16
17
-
A binary predicate that performs the inequality operation (`operator!=`) on its arguments.
17
+
A binary predicate that performs the inequality operation (`operator!=`) on its arguments.
18
18
19
19
## Syntax
20
20
@@ -37,22 +37,22 @@ struct not_equal_to<void>
37
37
38
38
### Parameters
39
39
40
-
`Type`, `T`, `U`
40
+
*Type*, *T*, *U*
41
41
Any type that supports an `operator!=` that takes operands of the specified or inferred types.
42
42
43
-
`Left`
44
-
The left operand of the inequality operation. The unspecialized template takes an lvalue reference argument of type `Type`. The specialized template does perfect forwarding of lvalue and rvalue reference arguments of inferred type `T`.
43
+
*Left*
44
+
The left operand of the inequality operation. The unspecialized template takes an lvalue reference argument of type *Type*. The specialized template does perfect forwarding of lvalue and rvalue reference arguments of inferred type *T*.
45
45
46
-
`Right`
47
-
The right operand of the inequality operation. The unspecialized template takes an lvalue reference argument of type `Type`. The specialized template does perfect forwarding of lvalue and rvalue reference arguments of inferred type `U`.
46
+
*Right*
47
+
The right operand of the inequality operation. The unspecialized template takes an lvalue reference argument of type *Type*. The specialized template does perfect forwarding of lvalue and rvalue reference arguments of inferred type *U*.
48
48
49
49
## Return Value
50
50
51
51
The result of `Left != Right`. The specialized template does perfect forwarding of the result, which has the type that's returned by `operator!=`.
52
52
53
53
## Remarks
54
54
55
-
The objects of type `Type` must be equality-comparable. This requires that the `operator!=` defined on the set of objects satisfies the mathematical properties of an equivalence relation. All of the built-in numeric and pointer types satisfy this requirement.
55
+
The objects of type *Type* must be equality-comparable. This requires that the `operator!=` defined on the set of objects satisfies the mathematical properties of an equivalence relation. All of the built-in numeric and pointer types satisfy this requirement.
0 commit comments