OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
has_data< T, typename Void< decltype(T::data)>::type > Struct Template Reference

has_data check if a type has defined a member data More...

Detailed Description

template<typename T>
struct has_data< T, typename Void< decltype(T::data)>::type >

has_data check if a type has defined a member data

Example

struct test_has_data
{
float data;
};
struct test_no_has_data
{
};
BOOST_REQUIRE_EQUAL(val, true);
BOOST_REQUIRE_EQUAL(val, false);

return true if T::type is a valid type

Definition at line 95 of file common.hpp.

#include <common.hpp>

+ Inheritance diagram for has_data< T, typename Void< decltype(T::data)>::type >:

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