NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | List of all members
nvbio::cast_functor< T, R > Struct Template Reference

Detailed description

template< typename T, typename R>
struct nvbio::cast_functor< T, R >

A functor to cast from one type into another

Definition at line 1356 of file numbers.h.

#include <numbers.h>

Public Types

typedef T argument_type
 
typedef R result_type
 

Public Methods

NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE
operator() (const T i) const
 

Member Typedef Documentation

template<typename T , typename R >
typedef T nvbio::cast_functor< T, R >::argument_type

Definition at line 1358 of file numbers.h.

template<typename T , typename R >
typedef R nvbio::cast_functor< T, R >::result_type

Definition at line 1359 of file numbers.h.

Member Function Documentation

template<typename T , typename R >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE R nvbio::cast_functor< T, R >::operator() ( const i) const
inline

return R(i)

Definition at line 1364 of file numbers.h.


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