Boost C++ Libraries

PrevUpHomeNext

Struct template flatten

boost::taar::matcher::flatten — Flatten an AST into a left-to-right type_list of its leaves.

Synopsis

// In header: <boost/taar/matcher/metadata.hpp>

template<typename AST> 
struct flatten {
  // types
  typedef type_list< AST > type;
};

Description

not_<X> contributes the same leaves as X. any_metadata and the empty list are treated as having no leaves; leaves themselves form a one-element list.


PrevUpHomeNext