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

Detailed description

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

A functor to return the constant 1 cast to a given type

#include <functors.h>

Public Types

typedef unary_function_tag function_tag
 
typedef T argument_type
 
typedef R result_type
 

Public Methods

CUGAR_HOST_DEVICE R operator() (const T op) const
 

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