CMS 3D CMS Logo

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 >

List of all members.

Public Member Functions

Result operator() (const Arg1 &a) const

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

Implements npstat::Functor1< Result, Arg1 >.

Definition at line 125 of file SimpleFunctors.h.

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