Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

C++ Boost


This class is an adapter that converts a list of EventVisitors (constructed using std::pair) into a DFSVisitor.


See the example for EventVisitor.

Model of


Template Parameters

EventVisitorList A list of EventVisitor's created with std::pair. null_visitor

Where Defined


Member Functions

This class implements all of the member functions required by DFSVisitor. In each function the appropriate event is dispatched to the EventVisitor in the EventVisitorList.

Non-Member Functions

template <class EventVisitorList>
make_dfs_visitor(EventVisitorList ev_list);
Returns the event visitor list adapted to be a DFS visitor.

See Also

Visitor concepts

The following are event visitors: predecessor_recorder, distance_recorder, time_stamper, and property_writer.

Copyright © 2000-2001 Jeremy Siek, Indiana University (
Lie-Quan Lee, Indiana University (
Andrew Lumsdaine, Indiana University (