Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
If <如果将 <<ref_try_value_to>> is used with a type, for which there's no `tag_invoke` overload of the form described in this section, but there is one of the form intended for <<ref_value_to>>, then the library still tries to perform the conversion. It uses the throwing overload, and attempts to convert any thrown exception into an {ref_error_code}. Note, though, that such approach will likely be slower then a dedicated overload.> 与某种类型搭配使用,而该类型不存在本节中所描述的这种形式的 `tag_invoke` 重载函数,但存在用于 <<ref_value_to>> 形式的那种重载函数,那么库仍会尝试进行转换。它会使用抛出异常的重载函数,并尝试将任何抛出的异常转换为 {ref_error_code}。不过需要注意的是,这种方式可能比专门的重载函数要慢一些。</ref_value_to></ref_try_value_to>