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

Detailed description

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

if true 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 if_true_functor (const R r0, const R r1)
 
CUGAR_HOST_DEVICE R operator() (const T &v) const
 

Constructor & Destructor Documentation

◆ if_true_functor()

template<typename T , typename R >
CUGAR_HOST_DEVICE cugar::if_true_functor< T, R >::if_true_functor ( const R  r0,
const R  r1 
)
inline

constructor

Parameters
r0true output value
r1false output value

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