CMS 3D CMS Logo

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 111 of file SimpleFunctors.h.

Member Function Documentation

◆ operator()()

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 112 of file SimpleFunctors.h.

112 { return Result(static_cast<CastType>(a)); }

References a.

a
double a
Definition: hdecay.h:119