va_end
来自cppreference.com
|
|
该页由英文版wiki使用Google Translate机器翻译而来。
该翻译可能存在错误或用词不当。鼠标停留在文本上可以看到原版本。你可以帮助我们修正错误或改进翻译。参见说明请点击这里. |
| 在头文件 <cstdarg> 中定义
|
| void va_end(va_list ap); |
||
va_end的宏执行清理ap通过调用初始化的对象va_start或va_copy。 va_endap可能修改,以便它不再可用.原文:
The
va_end macro performs cleanup for an ap object initialized by a call to va_start or va_copy. va_end may modify ap so that it is no longer usable.如果没有调用相应的va_start或va_copy,或
va_end之前没有调用如果一个函数来调用va_start或va_copy的回报,该行为是未定义.原文:
If there is no corresponding call to va_start or va_copy, or if
va_end is not called before a function that calls va_start or va_copy returns, the behavior is undefined.[编辑] 参数
| ap | - | va_list类型的一个实例进行清理
原文: an instance of the va_list type to clean up |
[编辑] 扩展后的值
(无)
[编辑] 另请参阅
| 带可变参数函数的参数可以访问 原文: enables access to variadic function arguments (函数宏) | |
| (C++11) |
makes a copy of the variadic function arguments (函数宏) |
| 访问下一个可变参数函数的参数 原文: accesses the next variadic function argument (函数宏) | |