CMS 3D CMS Logo

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

◆ operator()()

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.

61 { return a; }

References a.

a
double a
Definition: hdecay.h:119