CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
npstat::CastingCopyConstructor< Result, Arg1, CastType > Struct Template Reference

#include <SimpleFunctors.h>

Inheritance diagram for npstat::CastingCopyConstructor< Result, Arg1, CastType >:
npstat::Functor1< Result, Arg1 >

Public Member Functions

Result operator() (const Arg1 &a) const
 
- Public Member Functions inherited from npstat::Functor1< Result, Arg1 >
virtual ~Functor1 ()
 

Additional Inherited Members

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

Detailed Description

template<typename Result, typename Arg1, typename CastType>
struct npstat::CastingCopyConstructor< Result, Arg1, CastType >

Sometimes it becomes necessary to perform an explicit cast for proper overload resolution of a converting copy constructor

Definition at line 123 of file SimpleFunctors.h.

Member Function Documentation

template<typename Result , typename Arg1 , typename CastType >
Result npstat::CastingCopyConstructor< Result, Arg1, CastType >::operator() ( const Arg1 &  a) const
inlinevirtual

Implements npstat::Functor1< Result, Arg1 >.

Definition at line 125 of file SimpleFunctors.h.

126  {return Result(static_cast<CastType>(a));}
double a
Definition: hdecay.h:121