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

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
 

Detailed Description

Tests functionality from Exercise 3-1.

Typedef Documentation

◆ init_vector_t

typedef boost::mpl::vector_c<int, 1, 2, 3> test_3_1::init_vector_t

Definition at line 73 of file chapter-3.cpp.

◆ new_vector_t

Definition at line 75 of file chapter-3.cpp.

◆ new_vectorb_t

Definition at line 79 of file chapter-3.cpp.

Function Documentation

◆ BOOST_STATIC_ASSERT()

test_3_1::BOOST_STATIC_ASSERT ( (boost::mpl::equal< new_vectorb_t, boost::mpl::vector_c< int, 2, 3, 4 > >::type::value)  )

Variable Documentation

◆ x

init_vector_t test_3_1::x

Definition at line 76 of file chapter-3.cpp.

◆ y

new_vector_t test_3_1::y

Definition at line 77 of file chapter-3.cpp.

◆ z

new_vectorb_t test_3_1::z

Definition at line 80 of file chapter-3.cpp.