Elm  2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
VarArg Class Reference

#include <elm/util/VarArg.h>

Public Member Functions

 VarArg (va_list &args)
 
 VarArg (const VarArg &args)
 
template<class T >
next (void)
 
va_list & args (void)
 
template<>
bool next (void)
 

Detailed Description

This is a wrapper around the <stdarg.h> macros. This class may be used:

  • as a wrapper around stdarg (use VARARG_BEGIN and VARARG_END macros),
  • for avoiding ambiguity in overload between VarArg (va_list) and "..." ellipsis.

Constructor & Destructor Documentation

◆ VarArg() [1/2]

VarArg ( va_list &  args)
inline

Constructor from an existing va_list.

Parameters
argsExisting va_list.

◆ VarArg() [2/2]

VarArg ( const VarArg args)
inline

Cloning constructor.

Parameters
argsVarArg to clone.

Member Function Documentation

◆ args()

va_list & args ( void  )
inline

Get the argument list.

Returns
Argument list.

Referenced by Output::format().

◆ next() [1/2]

T next ( void  )

Get the next item in the variable argument list.

Returns
Next item.

◆ next() [2/2]

unsigned short next ( void  )
inline

The documentation for this class was generated from the following files: