Variadic function: Difference between revisions

Content deleted Content added
Line 13:
To portably implement variadic functions in the C programming language, the standard [http://www.opengroup.org/onlinepubs/009695399/basedefs/stdarg.h.html <tt><stdarg.h></tt>] header file should be used. The older [http://www.opengroup.org/onlinepubs/007908799/xsh/varargs.h.html <tt><varargs.h></tt>] header has been deprecated in favor of <tt><stdarg.h></tt>.
 
The variadic function feature is going to be present in the upcoming [[C++]] language standard, [[C++0x]]; this feature is called "Variadic templates". This allows the creation of variadic template classes and variadic template functions:.
 
For a simple tutorial refer to the [http://www.codeproject.com/cpp/argfunctions.asp?df=100&forumid=15556&exp=0&select=503481 Variable Argument Functions tutorial].
 
template<typename T>
Line 34 ⟶ 36:
template<>
class tuple<>;
 
For a simple tutorial refer to the [http://www.codeproject.com/cpp/argfunctions.asp?df=100&forumid=15556&exp=0&select=503481 Variable Argument Functions tutorial].
 
== Variadic functions in PHP ==