|
constexprnoexcept |
Checks whether conversion of the parameter to the given type would overflow.
| To | The type to which the conversion takes place. |
| From | A deducable type of the parameter to convert. |
| val | A value to convert. |
true if the conversion would overflow, and false otherwise.The function checks if both To and From are integral types, both signed and/or unsigned. If either of the two types are not integral, the function returns true if, and only if, To and From denote the same type.