Public Member Functions | Public Attributes

fst::script::args::WithReturnValue< Retval, ArgPackage > Struct Template Reference

#include <fst/script/arg-packs.h>

List of all members.

Public Member Functions

 WithReturnValue (const ArgPackage &args)

Public Attributes

Retval retval
const ArgPackage & args

Detailed Description

template<class Retval, class ArgPackage>
struct fst::script::args::WithReturnValue< Retval, ArgPackage >

Tack this on to an existing arg pack to add a return value. The syntax for accessing the args is then slightly more stilted, as you must do an extra member access (since the args are stored as a member of this class). The alternative is to declare another slew of templates for functions that return a value, analogous to the above.

Definition at line 219 of file arg-packs.h.


Constructor & Destructor Documentation

template<class Retval , class ArgPackage >
fst::script::args::WithReturnValue< Retval, ArgPackage >::WithReturnValue ( const ArgPackage &  args  )  [inline, explicit]

Definition at line 223 of file arg-packs.h.


Member Data Documentation

template<class Retval , class ArgPackage >
const ArgPackage& fst::script::args::WithReturnValue< Retval, ArgPackage >::args

Definition at line 221 of file arg-packs.h.

template<class Retval , class ArgPackage >
Retval fst::script::args::WithReturnValue< Retval, ArgPackage >::retval

Definition at line 220 of file arg-packs.h.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines