OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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"};
{
};
static const std::string name[2]
This test structure has 2 attribute names.
Definition util_test.hpp:70
[Check has_posMask struct definition]
Definition util_test.hpp:65
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: