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

Tests functionality from Exercise 5-1. More...

Typedefs

typedef boost::mpl::vector_c< int, 1, 2, 3, 4 > testVec
 
typedef double_first_half< testVec >::type testVec2
 

Functions

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

Detailed Description

Tests functionality from Exercise 5-1.

Typedef Documentation

◆ testVec

typedef boost::mpl::vector_c<int, 1, 2, 3, 4> test_5_1::testVec

Definition at line 43 of file chapter-5.cpp.

◆ testVec2

Definition at line 45 of file chapter-5.cpp.

Function Documentation

◆ BOOST_STATIC_ASSERT()

test_5_1::BOOST_STATIC_ASSERT ( (boost::mpl::equal< testVec2, boost::mpl::vector_c< int, 2, 4, 3, 4 > >::value)  )