OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
stub_or_real< T, dims, stype, decomposition, stub > Struct Template Reference

In case of testing return a stub grid. More...

Detailed Description

template<typename T, unsigned int dims, typename stype, typename decomposition, bool stub = is_testing<T>::value>
struct stub_or_real< T, dims, stype, decomposition, stub >

In case of testing return a stub grid.

Example

struct on_test
{
typedef void testing;
};
{
};
BOOST_REQUIRE_EQUAL(ret,true);
BOOST_REQUIRE_EQUAL(ret,false);

return true if T::attributes::name[0] is a valid expression and produce a defined type

Definition at line 83 of file util_num.hpp.

#include <util_num.hpp>

Public Types

typedef grid_dist_testing< dims > type
 switch type if we are on testing or not
 

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