OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
openfpm::is_multi_array< T, typename Void< typename T::yes_is_multi_array >::type > Struct Template Reference

has_noPointers check if a type has defined a method called noPointers More...

Detailed Description

template<typename T>
struct openfpm::is_multi_array< T, typename Void< typename T::yes_is_multi_array >::type >

has_noPointers check if a type has defined a method called noPointers

Example

struct test_no_ptr
{
static bool noPointers() {return true;}
};
struct test_ptr
{
static bool noPointers() {return false;}
};
struct test_unknown
{
};
BOOST_REQUIRE_EQUAL(has_noPointers<test_no_ptr>::type::value,true);
BOOST_REQUIRE_EQUAL(has_noPointers<test_ptr>::type::value,true);
BOOST_REQUIRE_EQUAL(has_noPointers<test_unknown>::type::value,false);

return true if T::noPointers() is a valid expression (function pointers) and produce a defined type

Definition at line 319 of file multi_array_ref_openfpm.hpp.

#include <multi_array_ref_openfpm.hpp>

+ Inheritance diagram for openfpm::is_multi_array< T, typename Void< typename T::yes_is_multi_array >::type >:

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