C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Tests functionality from Exercise 7-6. More...
Typedefs | |
typedef permutation_view< boost::mpl::list_c< int, 2, 1, 3, 0, 2 >, boost::mpl::vector_c< int, 11, 22, 33, 44 > > | pv1 |
typedef boost::mpl::begin< pv1 >::type | it0 |
typedef boost::mpl::deref< it0 >::type | val0 |
typedef boost::mpl::next< it0 >::type | it1 |
typedef boost::mpl::deref< it1 >::type | val1 |
Functions | |
BOOST_STATIC_ASSERT ((33==val0::value)) | |
BOOST_STATIC_ASSERT ((22==val1::value)) | |
BOOST_STATIC_ASSERT ((boost::mpl::equal< pv1, boost::mpl::vector_c< int, 33, 22, 44, 11, 33 > >::value)) | |
Tests functionality from Exercise 7-6.
typedef boost::mpl::begin<pv1>::type test_7_6::it0 |
Definition at line 193 of file chapter-7.cpp.
typedef boost::mpl::next<it0>::type test_7_6::it1 |
Definition at line 197 of file chapter-7.cpp.
typedef permutation_view< boost::mpl::list_c<int,2,1,3,0,2>, boost::mpl::vector_c<int,11,22,33,44> > test_7_6::pv1 |
Definition at line 191 of file chapter-7.cpp.
typedef boost::mpl::deref<it0>::type test_7_6::val0 |
Definition at line 194 of file chapter-7.cpp.
typedef boost::mpl::deref<it1>::type test_7_6::val1 |
Definition at line 198 of file chapter-7.cpp.
test_7_6::BOOST_STATIC_ASSERT | ( | (22==val1::value) | ) |
test_7_6::BOOST_STATIC_ASSERT | ( | (33==val0::value) | ) |
test_7_6::BOOST_STATIC_ASSERT | ( | (boost::mpl::equal< pv1, boost::mpl::vector_c< int, 33, 22, 44, 11, 33 > >::value) | ) |