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::SameRef< Result > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::SameRef< Result >:
npstat::Functor1< const Result &, Result >

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

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

A simple functor which returns a reference to its argument

Definition at line 71 of file SimpleFunctors.h.

Member Function Documentation

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

Implements npstat::Functor1< const Result &, Result >.

Definition at line 73 of file SimpleFunctors.h.

References a.

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