Code forensics  0.1
Generate historical information about code changes
any_visitor Struct Reference

boost::any visitor helper More...

#include <cli_options.hpp>

Public Member Functions

template<typename T >
void insert_visitor (boost::function< void(T)> f)
 add visitor for the specified mapping More...
 
bool operator() (boost::any &x) const
 try to call any of the stored oeprators with provided More...
 

Static Public Member Functions

template<typename T >
static T any_cast_f (boost::any &any)
 Convert 'any' value to specified type. More...
 

Public Attributes

boost::unordered_map< boost::reference_wrapper< std::type_info const >, boost::function< void(boost::any &)>, type_info_hash, equal_reffs
 

Detailed Description

boost::any visitor helper

Member Function Documentation

◆ any_cast_f()

template<typename T >
static T any_visitor::any_cast_f ( boost::any &  any)
inlinestatic

Convert 'any' value to specified type.

◆ insert_visitor()

template<typename T >
void any_visitor::insert_visitor ( boost::function< void(T)>  f)
inline

add visitor for the specified mapping

◆ operator()()

bool any_visitor::operator() ( boost::any &  x) const
inline

try to call any of the stored oeprators with provided

  • x. Return
    Returns
    'true' if call have been made, otherwise return false.

Member Data Documentation

◆ fs

boost::unordered_map< boost::reference_wrapper<std::type_info const>, boost::function<void(boost::any&)>, type_info_hash, equal_ref> any_visitor::fs

The documentation for this struct was generated from the following file: