npstat is hosted by Hepforge, IPPP Durham
NPStat  5.10.0
npstat::FcnFunctor1< Result, Arg1 > Struct Template Reference

#include <SimpleFunctors.hh>

Inheritance diagram for npstat::FcnFunctor1< Result, Arg1 >:
npstat::Functor1< Result, Arg1 >

Public Member Functions

 FcnFunctor1 (Result(*fcn)(Arg1))
 
Result operator() (const Arg1 &a) const
 
bool operator== (const FcnFunctor1 &r) const
 
bool operator!= (const FcnFunctor1 &r) const
 

Additional Inherited Members

- Public Types inherited from npstat::Functor1< Result, Arg1 >
typedef Result result_type
 
typedef Arg1 first_argument_type
 

Detailed Description

template<typename Result, typename Arg1>
struct npstat::FcnFunctor1< Result, Arg1 >

Adaptation for using single-argument functors with simple cmath-style functions


The documentation for this struct was generated from the following file: