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

This is the documentation for an old version of boost. Click here for the latest Boost documentation.
Class template static_visitor
c++boost.gif (8819 bytes)HomeLibrariesPeopleFAQMore

Class template static_visitor

boost::static_visitor — Convenient base type for static visitors.


template<typename ResultType> 
class static_visitor {
  // types
  typedef ResultType result_type;  // Exposes result_type member as required by StaticVisitor concept.


Denotes the intent of the deriving class as meeting the requirements of a static visitor of some type. Also exposes the inner type result_type as required by the StaticVisitor concept.

Notes: static_visitor is intended for use as a base type only and is therefore noninstantiable.

Last revised: , at GMTCopyright © 2002, 2003 Eric Friedman, Itay Maman