OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
is_grid< T, typename Void< typename T::yes_i_am_grid >::type > Struct Template Reference

is_grid check if the type is a grid More...

Detailed Description

template<typename T>
struct is_grid< T, typename Void< typename T::yes_i_am_grid >::type >

is_grid check if the type is a grid

Example

struct stub_object
{
float a;
double b;
};
bool val = is_grid< grid_cpu<2,aggregate<float> > >::value;
BOOST_REQUIRE_EQUAL( val ,true);
BOOST_REQUIRE_EQUAL( val , true);
BOOST_REQUIRE_EQUAL( val ,true);
BOOST_REQUIRE_EQUAL(val ,true);
BOOST_REQUIRE_EQUAL(val, true);
BOOST_REQUIRE_EQUAL(val,true);
BOOST_REQUIRE_EQUAL( val, false);
val = is_grid< stub_object > ::value;
BOOST_REQUIRE_EQUAL( val, false);

return true if T is a grid

Definition at line 27 of file util.hpp.

#include <util.hpp>

+ Inheritance diagram for is_grid< T, typename Void< typename T::yes_i_am_grid >::type >:

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