boost::any visitor helper
More...
#include <cli_options.hpp>
|
| 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...
|
| |
|
| template<typename T > |
| static T | any_cast_f (boost::any &any) |
| | Convert 'any' value to specified type. More...
|
| |
|
| boost::unordered_map< boost::reference_wrapper< std::type_info const >, boost::function< void(boost::any &)>, type_info_hash, equal_ref > | fs |
| |
boost::any visitor helper
◆ 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.
◆ 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: