Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Function apply_visitor /*three or more variant parameters*/

boost::apply_visitor /*three or more variant parameters*/

Synopsis

// In header: <boost/variant/multivisitors.hpp>


template<typename MultiVisitor, typename Variant1, typename Variant2, 
         typename Variant3> 
   
  ( visitor, 
                                                      operand1, 
                                                      operand2, 
                                                      operand3, 
                                                     ... other_operands);
template<typename MultiVisitor, typename Variant1, typename Variant2, 
         typename Variant3> 
   
  ( visitor, 
                                                      operand1, 
                                                      operand2, 
                                                      operand3, 
                                                     ... other_operands);

Description

Allows compile-time checked type-safe application of the given visitor to the content of the given variant, ensuring that all types are handled by the visitor. See apply_visitor for more information.


PrevUpHomeNext