Morpheus 1.0.0
Dynamic matrix type and algorithms for sparse matrices
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | Static Public Attributes | List of all members
Morpheus::is_space< T > Struct Template Reference

Checks if the given type T is a valid supported space. More...

#include <Morpheus_SpaceTraits.hpp>

Public Types

typedef char yes[1]
 
typedef char no[2]
 

Static Public Member Functions

template<class U >
static yes & test (U *, typename std::enable_if< Kokkos::is_space< typename U::execution_space >::value||Kokkos::is_space< typename U::memory_space >::value||Kokkos::is_space< typename U::device_type >::value||Kokkos::is_space< U >::value >::type *=nullptr)
 
template<class U >
static no & test (...)
 

Static Public Attributes

static const bool value = sizeof(test<T>(nullptr)) == sizeof(yes)
 

Detailed Description

template<typename T>
struct Morpheus::is_space< T >

Checks if the given type T is a valid supported space.

Template Parameters
TType passed for check.

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