CMS 3D CMS Logo

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

#include <SimpleFunctors.h>

Inheritance diagram for npstat::DefaultConstructor2< Result, Arg1, Arg2 >:
npstat::Functor2< Result, Arg1, Arg2 >

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from npstat::Functor2< Result, Arg1, Arg2 >
typedef Arg1 first_argument_type
 
typedef Result result_type
 
typedef Arg2 second_argument_type
 

Detailed Description

template<typename Result, typename Arg1, typename Arg2>
struct npstat::DefaultConstructor2< Result, Arg1, Arg2 >

Simple functor which ignores is arguments and instead builds the result using the default constructor of the result type

Definition at line 93 of file SimpleFunctors.h.

Member Function Documentation

template<typename Result , typename Arg1 , typename Arg2 >
Result npstat::DefaultConstructor2< Result, Arg1, Arg2 >::operator() ( const Arg1 &  ,
const Arg2 &   
) const
inlinevirtual

Implements npstat::Functor2< Result, Arg1, Arg2 >.

Definition at line 94 of file SimpleFunctors.h.

94 { return Result(); }