8 #ifndef SRC_UTIL_VARIADIC_TO_VMPL_UNIT_TEST_HPP_
9 #define SRC_UTIL_VARIADIC_TO_VMPL_UNIT_TEST_HPP_
11 #include "util/variadic_to_vmpl.hpp"
12 #include "data_type/scalar.hpp"
13 #include "util/util_debug.hpp"
25 template <
typename arg0,
typename T>
32 BOOST_AUTO_TEST_CASE( variadic_to_vmpl_test)
37 typedef boost::mpl::vector<float,float,float[3]> bfv;
42 bool val = std::is_same<boost::mpl::at<tbfv,boost::mpl::int_<0>>::type,
scalar<float>>::value;
43 BOOST_REQUIRE_EQUAL(val,
true);
45 val = std::is_same<boost::mpl::at<tbfv,boost::mpl::int_<1>>::type,
scalar<float>>::value;
46 BOOST_REQUIRE_EQUAL(val,
true);
48 val = std::is_same<boost::mpl::at<tbfv,boost::mpl::int_<2>>::type,
scalar<float[3]>>::value;
49 BOOST_REQUIRE_EQUAL(val,
true);
57 typedef boost::mpl::vector<float,float,float[3]> bfv;
62 bool val = std::is_same<boost::mpl::at<tbfv,boost::mpl::int_<0>>::type,
scalar<float>>::value;
63 BOOST_REQUIRE_EQUAL(val,
true);
65 val = std::is_same<boost::mpl::at<tbfv,boost::mpl::int_<1>>::type,
scalar<float>>::value;
66 BOOST_REQUIRE_EQUAL(val,
true);
68 val = std::is_same<boost::mpl::at<tbfv,boost::mpl::int_<2>>::type,
scalar<float[3]>>::value;
69 BOOST_REQUIRE_EQUAL(val,
true);
it define a scalar value compatible with grid_cpu , grid_gpu, vector, graph ...
[v_transform_two metafunction]
[v_transform metafunction]