C++ Template Metaprogramming
Solutions to the exercises throughout the book
Loading...
Searching...
No Matches
chapter5::tree< Cur, L, R > Struct Template Reference

A basic type to represent a binary tree. More...

#include <chapter-5-tree.hpp>

Public Types

typedef tree< Cur, L, R > type
 
typedef tree_tag tag
 

Detailed Description

template<typename Cur = void_, typename L = void_, typename R = void_>
struct chapter5::tree< Cur, L, R >

A basic type to represent a binary tree.

Template Parameters
CurThe "current" type information for this tree node. This may be boost::mpl::void_ to signify an empty tree.
LThe left branch of the tree structure. This may be boost::mpl::void_ to indicate that the branch does not exist.
RThe right branch of the tree structure. This may be boost::mpl::void_ to indicate that the branch does not exist.

Definition at line 32 of file chapter-5-tree.hpp.

Member Typedef Documentation

◆ tag

template<typename Cur = void_, typename L = void_, typename R = void_>
typedef tree_tag chapter5::tree< Cur, L, R >::tag

Definition at line 35 of file chapter-5-tree.hpp.

◆ type

template<typename Cur = void_, typename L = void_, typename R = void_>
typedef tree<Cur, L, R> chapter5::tree< Cur, L, R >::type

Definition at line 34 of file chapter-5-tree.hpp.


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