CMS 3D CMS Logo

Public Member Functions

npstat::SameRef< Result > Struct Template Reference

#include <SimpleFunctors.h>

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

List of all members.

Public Member Functions

const Result & operator() (const Result &a) const

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 [inline, virtual]

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

Definition at line 73 of file SimpleFunctors.h.

References a.

{return a;}