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

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

Typedefs

typedef boost::mpl::vector_c< int, 1, 2, 3 > init_vector_t
 
typedef ex_3_2< init_vector_t >::type new_vector_t
 

Functions

 BOOST_STATIC_ASSERT ((boost::mpl::equal< new_vector_t, boost::mpl::vector_c< int, 1, 4, 9 > >::type::value))
 

Variables

new_vector_t x
 

Detailed Description

Tests functionality from Exercise 3-2.

Typedef Documentation

◆ init_vector_t

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

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

◆ new_vector_t

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

Function Documentation

◆ BOOST_STATIC_ASSERT()

test_3_2::BOOST_STATIC_ASSERT ( (boost::mpl::equal< new_vector_t, boost::mpl::vector_c< int, 1, 4, 9 > >::type::value)  )

Variable Documentation

◆ x

new_vector_t test_3_2::x

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