proxygen
VariadicTemplateSum Struct Reference

Public Member Functions

int operator() () const
 
template<class... Args>
int operator() (int x, Args...args) const
 

Detailed Description

Definition at line 693 of file FunctionTest.cpp.

Member Function Documentation

int VariadicTemplateSum::operator() ( ) const
inline

Definition at line 694 of file FunctionTest.cpp.

References testing::Args().

694  {
695  return 0;
696  }
template<class... Args>
int VariadicTemplateSum::operator() ( int  x,
Args...  args 
) const
inline

Definition at line 698 of file FunctionTest.cpp.

698  {
699  return x + (*this)(args...);
700  }
Definition: InvokeTest.cpp:58

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