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

is_encap check if the type is an encap type More...

Detailed Description

template<typename T>
struct is_encap< T, typename Void< typename T::yes_i_am_encap >::type >

is_encap check if the type is an encap type

Example

struct stub_object
{
float a;
double b;
};
BOOST_REQUIRE_EQUAL( val ,true);
BOOST_REQUIRE_EQUAL( val , true);
BOOST_REQUIRE_EQUAL( val ,true);
BOOST_REQUIRE_EQUAL( val ,true);
BOOST_REQUIRE_EQUAL( val , true);
BOOST_REQUIRE_EQUAL( val ,true);
BOOST_REQUIRE_EQUAL( val, false);
val = is_encap< stub_object > ::value;
BOOST_REQUIRE_EQUAL( val, false);

return true if T is an encap

Definition at line 577 of file Encap.hpp.

#include <Encap.hpp>

+ Inheritance diagram for is_encap< T, typename Void< typename T::yes_i_am_encap >::type >:

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