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

Detailed description

template<typename T>
struct cugar::l_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 l_bit_shift (const T bits)
 
CUGAR_HOST_DEVICE T operator() (const T x) const
 

Constructor & Destructor Documentation

◆ l_bit_shift()

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

constructor

Parameters
bitsshift size

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