【24h】

Implicit and Dynamic Parameters in C++

机译:C ++中的隐式和动态参数

获取原文
获取原文并翻译 | 示例

摘要

Implicit and dynamic parameters are proposed as a general means to reduce the length of argument lists of function calls without resorting to dangerous global variables. In C++, these new kinds of parameters constitute a generalization of parameters with default arguments, whose values can be omitted in function calls. In contrast to the latter, however, the values of implicit and dynamic parameters are not obtained from a function's definition context, but rather from its different calling contexts. This is in turn similar to so-called dependent names in function templates, but offers a higher degree of flexibility and comprehensibility.
机译:建议使用隐式和动态参数作为减少函数调用参数列表的长度而又不求助于危险的全局变量的一般方法。在C ++中,这些新类型的参数构成了带有默认参数的参数的泛化,其默认值可以在函数调用中省略。与后者相反,隐式和动态参数的值不是从函数的定义上下文中获取的,而是从其不同的调用上下文中获取的。这又与功能模板中的所谓从属名称相似,但具有更高的灵活性和可理解性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号