CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
npstat::Same< Result > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::Same< Result >:
npstat::Functor1< Result, Result >

Public Member Functions

Result operator() (const Result &a) const
 
- Public Member Functions inherited from npstat::Functor1< Result, Result >
virtual ~Functor1 ()
 

Additional Inherited Members

- Public Types inherited from npstat::Functor1< Result, Result >
typedef Result first_argument_type
 
typedef Result result_type
 

Detailed Description

template<typename Result>
struct npstat::Same< Result >

A simple functor which returns a copy of its argument

Definition at line 64 of file SimpleFunctors.h.

Member Function Documentation

template<typename Result >
Result npstat::Same< Result >::operator() ( const Result &  a) const
inlinevirtual

Implements npstat::Functor1< Result, Result >.

Definition at line 66 of file SimpleFunctors.h.

References a.

66 {return a;}
double a
Definition: hdecay.h:121