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

has_attributes check if a type has defined an internal structure with attributes More...

Detailed Description

template<typename T>
struct has_val_pos< T, typename Void< typename T::with_position >::type >

has_attributes check if a type has defined an internal structure with attributes

Example

{
struct attributes
{
static const std::string name[2];
};
};
// attribute names
const std::string test_has_attributes::attributes::name[]={"attributes1","attributes2"};
{
};
BOOST_REQUIRE_EQUAL(val, true);
BOOST_REQUIRE_EQUAL(val, false);

return true if T::attributes::name[0] is a valid expression and produce a defined type

Definition at line 48 of file util_num.hpp.

#include <util_num.hpp>

+ Inheritance diagram for has_val_pos< T, typename Void< typename T::with_position >::type >:

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