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

Tests functionality from Exercise 7-3. More...

Typedefs

typedef boost::mpl::vector_c< int, 5, 6, 7, 8, 9, 0, 1, 2, 3, 4 > v
 
typedef exercise_7_3::rotate_view< v, boost::mpl::advance_c< boost::mpl::begin< v >::type, 5 >::type > view
 

Functions

 BOOST_STATIC_ASSERT ((boost::mpl::equal< view, boost::mpl::range_c< int, 0, 10 > >::value))
 

Detailed Description

Tests functionality from Exercise 7-3.

Typedef Documentation

◆ v

typedef boost::mpl::vector_c<int,5,6,7,8,9,0,1,2,3,4> test_7_3::v

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

◆ view

typedef exercise_7_3::rotate_view< v, boost::mpl::advance_c<boost::mpl::begin<v>::type, 5>::type> test_7_3::view

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

Function Documentation

◆ BOOST_STATIC_ASSERT()

test_7_3::BOOST_STATIC_ASSERT ( (boost::mpl::equal< view, boost::mpl::range_c< int, 0, 10 > >::value)  )