Public Member Functions | List of all members
Adder::f_body Struct Reference

Public Member Functions

int operator() (const std::tuple< int, int > &t)
 

Detailed Description

Definition at line 52 of file _test_tbb_composite.cxx.

Member Function Documentation

int Adder::f_body::operator() ( const std::tuple< int, int > &  t)
inline

Definition at line 53 of file _test_tbb_composite.cxx.

53  {
54  int n = (std::get<1>(t)+1)/2;
55  int sum = std::get<0>(t) + std::get<1>(t);
56  std::cout << "Sum of the first " << n <<" positive odd numbers is " << n <<" squared: " << sum << std::endl;
57  return sum;
58  }
IFrame::pointer sum(std::vector< IFrame::pointer > frames, int ident)
Definition: FrameUtil.cxx:15
std::size_t n
Definition: format.h:3399
QTextStream & endl(QTextStream &s)

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