C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches

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))
 

Detailed Description

Tests functionality from Exercise 7-6.

Typedef Documentation

◆ it0

typedef boost::mpl::begin<pv1>::type test_7_6::it0

Definition at line 193 of file chapter-7.cpp.

◆ it1

typedef boost::mpl::next<it0>::type test_7_6::it1

Definition at line 197 of file chapter-7.cpp.

◆ pv1

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.

◆ val0

typedef boost::mpl::deref<it0>::type test_7_6::val0

Definition at line 194 of file chapter-7.cpp.

◆ val1

typedef boost::mpl::deref<it1>::type test_7_6::val1

Definition at line 198 of file chapter-7.cpp.

Function Documentation

◆ BOOST_STATIC_ASSERT() [1/3]

test_7_6::BOOST_STATIC_ASSERT ( (22==val1::value)  )

◆ BOOST_STATIC_ASSERT() [2/3]

test_7_6::BOOST_STATIC_ASSERT ( (33==val0::value)  )

◆ BOOST_STATIC_ASSERT() [3/3]

test_7_6::BOOST_STATIC_ASSERT ( (boost::mpl::equal< pv1, boost::mpl::vector_c< int, 33, 22, 44, 11, 33 > >::value)  )