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::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 override
 
- 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 60 of file SimpleFunctors.h.

Member Function Documentation

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

Implements npstat::Functor1< Result, Result >.

Definition at line 61 of file SimpleFunctors.h.

References a.

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