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

is_constant check if a type define a constant field More...

Detailed Description

template<typename T>
struct is_const_field< T, typename Void< typename T::const_field >::type >

is_constant check if a type define a constant field

Example

{
typedef void const_field;
float val() {return 1.0;}
};
{
typedef void const_field;
typedef void with_position;
float val_pos(grid_key_dx<2> & pos) {return 1.0;}
};
struct no_field
{
};
grid_key_dx is the key to access any element in the grid
Definition grid_key.hpp:19
define a non-constant (in space) field
[Constant fields struct definition]
BOOST_REQUIRE_EQUAL(ret,true);
BOOST_REQUIRE_EQUAL(ret,false);

return true if T::constant_field exist, it does not matter which type is

Definition at line 28 of file util_num.hpp.

#include <util_num.hpp>

+ Inheritance diagram for is_const_field< T, typename Void< typename T::const_field >::type >:

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