什么是...在c ++中的使用 [英] what is the use of ... in c++

查看:101
本文介绍了什么是...在c ++中的使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试用了Google搜寻 ... ,但正如预期,Google忽略了它。

I tried googling ... but as expected, google ignored it.

try {

// some code
}

catch( ... ) {
// catch logic

}


$ b b

我猜想 ... 是指任何种类的例外,我是对的吗?

任何其他用途?

I'm guessing that ... means any kind of exceptions, am I right ?
any other usages for this ?

推荐答案

我知道三个用例:


  • 可变数量的参数,如'printf(const char * fmt,...)'

  • / li>
  • 一个可变参数模板,如'template< typename ... T>'and unpacking'T ...'(c ++ 11)

missed,is preprocessing:variadic macros

And another one, which I missed, is preprocessing: variadic macros

这篇关于什么是...在c ++中的使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆