oss_src/unity/lib/toolkit_util.hpp
inline std::map<std::string, flexible_type> varmap_to_flexmap(const variant_map_type& map) {
  std::map<std::string, flexible_type> ret;
  for (const auto& kv : map) {
    if (kv.second.type() == typeid(flexible_type)) {
      ret[kv.first] = boost::get<flexible_type>(kv.second);
    }
  }
  return ret;
}
/**
 * Extract all flexible_type values from the varmap into a std::map<std::String, flexible_type>.
 * All other value types will be ignored.
 */
Extract all flexible_type values from the varmap into a std::map.
All other value types will be ignored.
Extract all flexible_type values from the varmap into a std :: map . All other value types will be ignored .
inline std::map<std::string, flexible_type> varmap_to_flexmap(const variant_map_type& map) {
  std::map<std::string, flexible_type> ret;
  for (const auto& kv : map) {
    if (kv.second.type() == typeid(flexible_type)) {
      ret[kv.first] = boost::get<flexible_type>(kv.second);
    }
  }
  return ret;
}
inline std :: map < std :: string , flexible_type > varmap_to_flexmap ( const variant_map_type & map ) { std :: map < std :: string , flexible_type > ret ; for ( const auto & kv : map ) { if ( kv . second . type ( ) == typeid ( flexible_type ) ) { ret [ kv . first ] = boost :: get < flexible_type > ( kv . second ) ; } } return ret ; }
Extract all flexible_type values from the varmap into a std::map<std::String, flexible_type>.
Extract all flexible_type values from the varmap into a std :: map<std :: String flexible_type > .