OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
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
{
};
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: