go top

可变模板参数

网络释义

  Variadic Templates

C++11今后的新版本供给了完美转发(argument forwarding)、可变模板参数(variadic templates)等特点,为我们可以或许实现一种全新的异步调用模型供给了可能。

基于6个网页-相关网页

短语

可变参数模板 variadic template

有道翻译

可变模板参数

Variable template parameters

以上为机器翻译结果,长、整句建议使用 人工翻译

双语例句

  • 如何定义具有数量可变参数(每个参数类型可能不同)的模板函数

    How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?

    youdao

  • 可以使用 typename声明可变参数模板

    You use the typename… to declare variadic templates.

    youdao

  • 首先调用 f 模板版本第一参数类型字符串作为大小可变参数提供字符精度值。

    The first time around, the templated version of f is called, with a string as the first argument type, and the character and double are packed off as the variable size argument.

    youdao

更多双语例句
$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定