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

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

Typedefs

typedef boost::mpl::vector_c< int, 1, 2 > v1
 
typedef boost::mpl::rbegin< v1 >::type ri0
 
typedef boost::mpl::deref< ri0 >::type rv0
 
typedef boost::mpl::next< ri0 >::type ri1
 
typedef boost::mpl::deref< ri1 >::type rv1
 
typedef boost::mpl::next< ri1 >::type ri2
 
typedef boost::mpl::rend< v1 >::type ri_end
 
typedef boost::mpl::prior< ri1 >::type ri1_prior
 

Functions

 BOOST_STATIC_ASSERT ((rv0::value==2))
 
 BOOST_STATIC_ASSERT ((rv1::value==1))
 
 BOOST_STATIC_ASSERT ((boost::is_same< ri2, ri_end >::value))
 
 BOOST_STATIC_ASSERT ((boost::is_same< ri1_prior, ri0 >::value))
 

Detailed Description

Tests functionality from Exercise 7-7.

Typedef Documentation

◆ ri0

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

◆ ri1

typedef boost::mpl::next<ri0>::type test_7_7::ri1

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

◆ ri1_prior

typedef boost::mpl::prior<ri1>::type test_7_7::ri1_prior

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

◆ ri2

typedef boost::mpl::next<ri1>::type test_7_7::ri2

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

◆ ri_end

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

◆ rv0

typedef boost::mpl::deref<ri0>::type test_7_7::rv0

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

◆ rv1

typedef boost::mpl::deref<ri1>::type test_7_7::rv1

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

◆ v1

typedef boost::mpl::vector_c<int, 1, 2> test_7_7::v1

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

Function Documentation

◆ BOOST_STATIC_ASSERT() [1/4]

test_7_7::BOOST_STATIC_ASSERT ( (boost::is_same< ri1_prior, ri0 >::value)  )

◆ BOOST_STATIC_ASSERT() [2/4]

test_7_7::BOOST_STATIC_ASSERT ( (boost::is_same< ri2, ri_end >::value)  )

◆ BOOST_STATIC_ASSERT() [3/4]

test_7_7::BOOST_STATIC_ASSERT ( (rv0::value==2)  )

◆ BOOST_STATIC_ASSERT() [4/4]

test_7_7::BOOST_STATIC_ASSERT ( (rv1::value==1)  )