FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
template<typename Dict >
FB::VariantMap FB::make_variant_map ( const Dict &  dict)

Create a FB::VariantMap from any STL-style dictionary (i.e. exposes begin() and end())

contA STL-style container.
A FB::VariantMap constructed from the cont.

Definition at line 165 of file variant_map.h.

166  {
167  FB::VariantMap result;
168  std::copy(d.begin(), d.end(), std::inserter(result, result.begin()));
169  return result;
170  }
std::map< std::string, variant > VariantMap
Defines an alias representing a string -> variant map.
Definition: APITypes.h:72