Fermat
Public Types | Public Methods | Public Members | List of all members
cugar::constant_functor< T, R > Struct Template Reference

Detailed description

template<typename T, typename R>
struct cugar::constant_functor< T, R >

constant functor

#include <functors.h>

Public Types

typedef unary_function_tag function_tag
 
typedef T argument_type
 
typedef R result_type
 

Public Methods

CUGAR_HOST_DEVICE constant_functor (R c)
 
CUGAR_HOST_DEVICE R operator() (const T op) const
 

Public Members

constant
 

Constructor & Destructor Documentation

◆ constant_functor()

template<typename T , typename R >
CUGAR_HOST_DEVICE cugar::constant_functor< T, R >::constant_functor ( c)
inline

constructor

Parameters
cconstant value

The documentation for this struct was generated from the following file: