OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
to_boost_vmpl< id > Struct Template Reference

Detailed Description

template<int... id>
struct to_boost_vmpl< id >

It convert a variadic template into a boost::mpl::vector

to_boost_vmpl<3,4,7,10>::type is converted into

boost::mpl::vector<int_<3>,int_<4>,int_<7>,int_<10>>

bool val = std::is_same<boost::mpl::at<bfv,boost::mpl::int_<0>>::type,boost::mpl::int_<1>>::value;
BOOST_REQUIRE_EQUAL(val,true);
val = std::is_same<boost::mpl::at<bfv,boost::mpl::int_<1>>::type,boost::mpl::int_<4>>::value;
BOOST_REQUIRE_EQUAL(val,true);
val = std::is_same<boost::mpl::at<bfv,boost::mpl::int_<2>>::type,boost::mpl::int_<5>>::value;
BOOST_REQUIRE_EQUAL(val,true);
val = std::is_same<boost::mpl::at<bfv,boost::mpl::int_<3>>::type,boost::mpl::int_<9>>::value;
BOOST_REQUIRE_EQUAL(val,true);
boost::mpl::vector< boost::mpl::int_< id >... > type
construct an mpl vector from the variadic

Definition at line 282 of file variadic_to_vmpl.hpp.

#include <variadic_to_vmpl.hpp>

Public Types

typedef boost::mpl::vector< boost::mpl::int_< id >... > type
 construct an mpl vector from the variadic
 

Member Typedef Documentation

◆ type

template<int... id>
typedef boost::mpl::vector<boost::mpl::int_<id>...> to_boost_vmpl< id >::type

construct an mpl vector from the variadic

Definition at line 285 of file variadic_to_vmpl.hpp.


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