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

Detailed description

template<typename T>
struct cugar::eq_constant< T >

A functor to compute equality to a given constant

#include <functors.h>

Public Types

typedef unary_function_tag function_tag
 
typedef T argument_type
 
typedef bool result_type
 

Public Methods

CUGAR_HOST_DEVICE eq_constant (const T c)
 
CUGAR_HOST_DEVICE bool operator() (const T &v) const
 

Constructor & Destructor Documentation

◆ eq_constant()

template<typename T >
CUGAR_HOST_DEVICE cugar::eq_constant< T >::eq_constant ( const T  c)
inline

constructor

Parameters
cconstant value

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