Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
When accessing a number contained within a <<ref_value>>, the function used must match the value's <<ref_kind>> exactly; no conversions will be performed. For example if `as_double` is called on a <<ref_value>> that contains a `std::uint64_t`, an exception is thrown. Similarly, the function `if_double` will return `nullptr` and calling `get_double` will result in undefined behavior:访问<<ref_value>>内包含的数字时,所使用的函数必须与该值的<<ref_kind>>完全匹配;不会执行任何转换。例如,如果在一个包含`std::uint64_t` 的 <<ref_value>> 上调用 `as_double`,将抛出异常。类似地,函数 `if_double` 将返回`nullptr`,而调用 `get_double` 将导致未定义行为:</ref_value></ref_kind></ref_value>