OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
has_noPointers< T, typename Void< decltype(T::noPointers())>::type > Struct Template Reference

has_noPointers check if a type has defined a method called noPointers More...

Detailed Description

template<typename T>
struct has_noPointers< T, typename Void< decltype(T::noPointers())>::type >

has_noPointers check if a type has defined a method called noPointers

Example

struct test_no_ptr
{
static bool noPointers() {return true;}
};
struct test_ptr
{
static bool noPointers() {return false;}
};
struct test_unknown
{
};
BOOST_REQUIRE_EQUAL(has_noPointers<test_no_ptr>::type::value,true);
BOOST_REQUIRE_EQUAL(has_noPointers<test_ptr>::type::value,true);
BOOST_REQUIRE_EQUAL(has_noPointers<test_unknown>::type::value,false);

return true if T::noPointers() is a valid expression (function pointers) and produce a defined type

Definition at line 166 of file common.hpp.

#include <common.hpp>

+ Inheritance diagram for has_noPointers< T, typename Void< decltype(T::noPointers())>::type >:

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