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

Detailed description

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

A functor to shift values to the left by a given amount of bits

#include <functors.h>

Public Types

typedef T argument_type
 
typedef T result_type
 

Public Methods

CUGAR_HOST_DEVICE r_bit_shift (const T bits)
 
CUGAR_HOST_DEVICE T operator() (const T x) const
 

Constructor & Destructor Documentation

◆ r_bit_shift()

template<typename T >
CUGAR_HOST_DEVICE cugar::r_bit_shift< T >::r_bit_shift ( const T  bits)
inline

constructor

Parameters
bitsshift size

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