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

Encapsulate solution for Exercise 6-3. More...

Classes

struct  binary_tree_inserter
 Basically indistinguishable from from any other inserter since we have a generic insert metafunction. More...
 

Typedefs

typedef boost::mpl::copy< boost::mpl::vector_c< int, 17, 25, 10, 2, 11 >, binary_tree_inserter< chapter5::tree<> > >::type bst
 A sorted binary tree copied from the source vector.
 

Detailed Description

Encapsulate solution for Exercise 6-3.

Typedef Documentation

◆ bst

typedef boost::mpl::copy<boost::mpl::vector_c<int,17,25,10,2,11>,binary_tree_inserter<chapter5::tree<>>>::type exercise_6_3::bst

A sorted binary tree copied from the source vector.

Definition at line 69 of file exercise-6-3.hpp.