C++ Primer(第5版) 练习 16.51
练习 16.51 调用本节中的每个foo,确定sizeof…(Args)和sizeof…(rest)分别返回什么。
环境:Linux Ubuntu(云服务器)
工具:vim
代码块
//sizeof...(Args)返回3,sizeof...(rest)返回3
void foo(const int&, const string&, const int&, const double&);
//sizeof...(Args)返回2,sizeof...(rest)返回2
void foo(const string&, const int&, const char[3]&);
//sizeof...(Args)返回1,sizeof...(rest)返回1
void foo(const double&, const string&);
//sizeof...(Args)返回0,sizeof...(rest)返回0
void foo(const char[3]&);
