C++ Template Metaprogramming
Solutions to the exercises throughout the book
|
Tests functionality from Exercise 3-1. More...
Typedefs | |
typedef boost::mpl::vector_c< int, 1, 2, 3 > | init_vector_t |
typedef ex_3_1< init_vector_t >::type | new_vector_t |
typedef ex_3_1b< init_vector_t >::type | new_vectorb_t |
Functions | |
BOOST_STATIC_ASSERT ((boost::mpl::equal< new_vectorb_t, boost::mpl::vector_c< int, 2, 3, 4 > >::type::value)) | |
Variables | |
init_vector_t | x |
new_vector_t | y |
new_vectorb_t | z |
Tests functionality from Exercise 3-1.
typedef boost::mpl::vector_c<int, 1, 2, 3> test_3_1::init_vector_t |
Definition at line 73 of file chapter-3.cpp.
typedef ex_3_1<init_vector_t>::type test_3_1::new_vector_t |
Definition at line 75 of file chapter-3.cpp.
typedef ex_3_1b<init_vector_t>::type test_3_1::new_vectorb_t |
Definition at line 79 of file chapter-3.cpp.
test_3_1::BOOST_STATIC_ASSERT | ( | (boost::mpl::equal< new_vectorb_t, boost::mpl::vector_c< int, 2, 3, 4 > >::type::value) | ) |
init_vector_t test_3_1::x |
Definition at line 76 of file chapter-3.cpp.
new_vector_t test_3_1::y |
Definition at line 77 of file chapter-3.cpp.
new_vectorb_t test_3_1::z |
Definition at line 80 of file chapter-3.cpp.