OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
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);
static size_t value()
Return true if the structure T has a pointer.
This class check if the type T has pointers inside.

Definition at line 53 of file check_no_pointers.hpp.

#include <check_no_pointers.hpp>

Static Public Member Functions

static size_t value ()
 

Member Function Documentation

◆ value()

template<typename T >
static size_t check_no_pointers< T >::value ( )
inlinestatic

Definition at line 55 of file check_no_pointers.hpp.


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