Boostfunction template visit_each

Header

#include <boost/visit_each.hpp>

Synopsis

The visit_each mechanism allows a visitor to be applied to every subobject in a given object. It is used by the Signals library to discover trackable objects within a function object, but other uses may surface if it used universally (e.g., conservative garbage collection). To fit within the visit_each framework, a visit_each overload must be supplied for each object type.

namespace boost {
  template<typename Visitor, typename T>
  void visit_each(Visitor&, const T&, int);
}

Functions

template<typename Visitor, typename T> void visit_each(Visitor& v, const T& t, int);


Doug Gregor
Last modified: Fri Oct 11 05:43:33 EDT 2002