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
Tests whether a value of `From` type can be assigned to a `To` type.
21
+
Tests whether a value of *From* type can be assigned to a *To* type.
22
22
23
23
```cpp
24
24
template <classTo, class From>
@@ -27,15 +27,15 @@ struct is_assignable;
27
27
28
28
### Parameters
29
29
30
-
To
30
+
*To*
31
31
The type of the object that receives the assignment.
32
32
33
-
From
33
+
*From*
34
34
The type of the object that provides the value.
35
35
36
36
### Remarks
37
37
38
-
The unevaluated expression `declval<To>() = declval<From>()` must be well-formed. Both `From` and `To` must be complete types, `void`, or arrays of unknown bound.
38
+
The unevaluated expression `declval<To>() = declval<From>()` must be well-formed. Both *From* and *To* must be complete types, **void**, or arrays of unknown bound.
An instance of the type predicate holds true if the type `Ty` is a class that has a copy assignment operator, otherwise it holds false. Equivalent to is_assignable\<Ty&, const Ty&>.
56
+
An instance of the type predicate holds true if the type *Ty* is a class that has a copy assignment operator, otherwise it holds false. Equivalent to is_assignable\<Ty&, const Ty&>.
An instance of the type predicate holds true if the type `T` is a class type that has a default constructor, otherwise it holds false. This is equivalent to the predicate `is_constructible<T>`. Type `T` must be a complete type, `void`, or an array of unknown bound.
127
+
An instance of the type predicate holds true if the type *T* is a class type that has a default constructor, otherwise it holds false. This is equivalent to the predicate `is_constructible<T>`. Type *T* must be a complete type, **void**, or an array of unknown bound.
A type predicate that evaluates to true if the type `T` can be constructed by using a move operation. This predicate is equivalent to `is_constructible<T, T&&>`.
198
+
A type predicate that evaluates to true if the type *T* can be constructed by using a move operation. This predicate is equivalent to `is_constructible<T, T&&>`.
An instance of the type predicate holds true if the type `T` is a class that has a trivial copy assignment operator, otherwise it holds false.
234
+
An instance of the type predicate holds true if the type *T* is a class that has a trivial copy assignment operator, otherwise it holds false.
235
235
236
-
An assignment constructor for a class `T` is trivial if it is implicitly provided, the class `T` has no virtual functions, the class `T` has no virtual bases, the classes of all the non-static data members of class type have trivial assignment operators, and the classes of all the non-static data members of type array of class have trivial assignment operators.
236
+
An assignment constructor for a class *T* is trivial if it is implicitly provided, the class *T* has no virtual functions, the class *T* has no virtual bases, the classes of all the non-static data members of class type have trivial assignment operators, and the classes of all the non-static data members of type array of class have trivial assignment operators.
Copy file name to clipboardExpand all lines: docs/standard-library/underlying-type-class.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,12 @@ struct underlying_type;
25
25
26
26
### Parameters
27
27
28
-
`T`
28
+
*T*
29
29
The type to modify.
30
30
31
31
## Remarks
32
32
33
-
The `type` member typedef of the template class names the underlying integral type of `T`, when `T` is an enumeration type, otherwise there is no member typedef `type`.
33
+
The `type` member typedef of the template class names the underlying integral type of *T*, when *T* is an enumeration type, otherwise there is no member typedef `type`.
The `param_type` structure used to construct the distribution.
181
181
182
182
### Remarks
183
183
184
184
**Precondition:** `a ≤ b`
185
185
186
-
The first constructor constructs an object whose stored `a` value holds the value *a* and whose stored `b` value holds the value *b*.
186
+
The first constructor constructs an object whose stored *a* value holds the value *a* and whose stored *b* value holds the value *b*.
187
187
188
188
The second constructor constructs an object whose stored parameters are initialized from *parm*. You can obtain and set the current parameters of an existing distribution by calling the `param()` member function.
The `param_type` structure used to construct the distribution.
180
180
181
181
### Remarks
182
182
183
183
**Precondition:** `a < b`
184
184
185
-
The first constructor constructs an object whose stored `a` value holds the value *a* and whose stored `b` value holds the value *b*.
185
+
The first constructor constructs an object whose stored *a* value holds the value *a* and whose stored *b* value holds the value *b*.
186
186
187
187
The second constructor constructs an object whose stored parameters are initialized from *parm*. You can obtain and set the current parameters of an existing distribution by calling the `param()` member function.
0 commit comments