OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
has_value_type< T, typename Void< typename T::value_type >::type > Struct Template Reference

has_value_type check if a type has defined a member value_type More...

Detailed Description

template<typename T>
struct has_value_type< T, typename Void< typename T::value_type >::type >

has_value_type check if a type has defined a member value_type

Example

struct test_has_value_type
{
typedef int value_type;
};
struct test_has_no_value_type
{
};
BOOST_REQUIRE_EQUAL(val, true);
BOOST_REQUIRE_EQUAL(val, false);

return true if T::value_type is a valid type

Definition at line 292 of file common.hpp.

#include <common.hpp>

+ Inheritance diagram for has_value_type< T, typename Void< typename T::value_type >::type >:

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