OpenFPM_pdata  1.1.0
Project that contain the implementation of distributed structures
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Friends Pages
check_no_pointers< T > Struct Template Reference

This class check if the type T has pointers inside. More...

Detailed Description

template<typename T>
struct check_no_pointers< T >

This class check if the type T has pointers inside.

It basically check if exist a function bool T::noPointers(), if not return UNKOWN if exist it return the noPointers return status

Template Parameters
Ttype to check

Example

struct test_no_ptr
{
static bool noPointers() {return PNP::NO_POINTERS;}
};
struct test_ptr
{
static bool noPointers() {return PNP::POINTERS;}
};
struct test_unknown
{
};
BOOST_REQUIRE_EQUAL(val,PNP::NO_POINTERS);
BOOST_REQUIRE_EQUAL(val,PNP::POINTERS);
BOOST_REQUIRE_EQUAL(val,PNP::UNKNOWN);

Definition at line 53 of file check_no_pointers.hpp.

#include <check_no_pointers.hpp>

Static Public Member Functions

static size_t value ()
 

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