C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
exercise_6_4::binary_tree_search< S, Elem > Struct Template Reference

Perform a search on a binary tree structure. More...

#include <exercise-6-4.hpp>

Inheritance diagram for exercise_6_4::binary_tree_search< S, Elem >:

Detailed Description

template<typename S, typename Elem>
struct exercise_6_4::binary_tree_search< S, Elem >

Perform a search on a binary tree structure.

If this algorithm finds nothing matching Elem, it returns boost::mpl::end< tree<> >.

Template Parameters
SA (sub)tree to search.
ElemThe element to search for.
Note
The unspecialized version of this metafunction deals only with leaf nodes in the tree.

Definition at line 88 of file exercise-6-4.hpp.


The documentation for this struct was generated from the following file: