Plus22< T > Class Template Reference

Because of the way this functor is used, some specific checks can be done. More...

List of all members.

Public Member Functions

 Plus22 (size_t aMax)
operator() (const T &a1, const T &a2)

Private Attributes

size_t maxNb


Detailed Description

template<class T>
class Plus22< T >

Because of the way this functor is used, some specific checks can be done.


Constructor & Destructor Documentation

template<class T>
Plus22< T >::Plus22 ( size_t  aMax  )  [inline]


Member Function Documentation

template<class T>
T Plus22< T >::operator() ( const T &  a1,
const T &  a2 
) [inline]

This functor is used by rpa::accumulate. It makes a plain addition, very fast. So, it is very easy to calculate the overhead of the library.

cout << "Add " << a1 << "+" << a2 << "\n" ;


Member Data Documentation

template<class T>
size_t Plus22< T >::maxNb [private]


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:31 2007 for rpa by  doxygen 1.4.7