proxygen
VariadicArgumentsSum Struct Reference

Public Member Functions

int operator() (int count,...) const
 

Detailed Description

Definition at line 713 of file FunctionTest.cpp.

Member Function Documentation

int VariadicArgumentsSum::operator() ( int  count,
  ... 
) const
inline

Definition at line 714 of file FunctionTest.cpp.

References count, and i.

714  {
715  int result = 0;
716  va_list args;
717  va_start(args, count);
718  for (int i = 0; i < count; ++i) {
719  result += va_arg(args, int);
720  }
721  va_end(args);
722  return result;
723  }
int * count

The documentation for this struct was generated from the following file: