CMS 3D CMS Logo

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

◆ operator()()

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.

67 { return a; }

References a.

a
double a
Definition: hdecay.h:119