boost::static_visitor — Convenient base type for static visitors.
template<typename ResultType> class static_visitor { public: // 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 non-instantiable.
Copyright © 2002, 2003 Eric Friedman, Itay Maman Permission to copy, use, sell and distribute this software is granted provided this copyright notice appears in all copies. Permission to modify the code and to distribute modified code is granted provided this copyright notice appears in all copies, and a notice that the code was modified is included with the copyright notice. This software is provided "as is" without express or implied warranty, and with no claim as to its suitability for any purpose. |