CMS 3D CMS Logo

List of all members | Public Member Functions
npstat::DefaultConstructor1< Result, Arg1 > Struct Template Reference

#include <SimpleFunctors.h>

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

Public Member Functions

Result operator() (const Arg1 &) 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>
struct npstat::DefaultConstructor1< Result, Arg1 >

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

Definition at line 91 of file SimpleFunctors.h.

Member Function Documentation

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

Implements npstat::Functor1< Result, Arg1 >.

Definition at line 93 of file SimpleFunctors.h.

93 {return Result();}