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;
};
{
};
grid_key_dx is the key to access any element in the grid
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.