CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 66 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 67 of file SimpleFunctors.h.

References a.

67 { return a; }
double a
Definition: hdecay.h:119