C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
anonymous_namespace{chapter-6.cpp}::test_6_3 Namespace Reference

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

Typedefs

typedef chapter5::tree< mpl_::integral_c< int, 17 >, chapter5::tree< mpl_::integral_c< int, 10 >, mpl_::integral_c< int, 2 >, mpl_::integral_c< int, 11 > >, mpl_::integral_c< int, 25 > > bst_expected
 Expected value (whitebox edition).
 

Functions

 BOOST_STATIC_ASSERT ((boost::is_same< exercise_6_3::bst, bst_expected >::value))
 
 BOOST_STATIC_ASSERT ((boost::mpl::equal< exercise_5_10::inorder_view< exercise_6_3::bst >, boost::mpl::vector_c< int, 2, 10, 11, 17, 25 > >::value))
 

Detailed Description

Tests functionality from Exercise 6-3.

Typedef Documentation

◆ bst_expected

typedef chapter5::tree< mpl_::integral_c<int, 17>, chapter5::tree< mpl_::integral_c<int, 10>, mpl_::integral_c<int, 2>, mpl_::integral_c<int, 11> >, mpl_::integral_c<int, 25>> anonymous_namespace{chapter-6.cpp}::test_6_3::bst_expected

Expected value (whitebox edition).

Definition at line 112 of file chapter-6.cpp.

Function Documentation

◆ BOOST_STATIC_ASSERT() [1/2]

anonymous_namespace{chapter-6.cpp}::test_6_3::BOOST_STATIC_ASSERT ( (boost::is_same< exercise_6_3::bst, bst_expected >::value)  )

◆ BOOST_STATIC_ASSERT() [2/2]

anonymous_namespace{chapter-6.cpp}::test_6_3::BOOST_STATIC_ASSERT ( (boost::mpl::equal< exercise_5_10::inorder_view< exercise_6_3::bst >, boost::mpl::vector_c< int, 2, 10, 11, 17, 25 > >::value)  )