MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / construct_pod

Function construct_pod

include/chaiscript/dispatchkit/bootstrap.hpp:105–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103 /// \param[in,out] m The Module to add the constructor to
104 template<typename T>
105 void construct_pod(const std::string &type, Module& m)
106 {
107 m.add(fun([](const Boxed_Number &bn){ return bn.get_as<T>(); }), type);
108 }
109
110
111 /// Internal function for converting from a string to a value

Callers

nothing calls this directly

Calls 2

funFunction · 0.85
addMethod · 0.45

Tested by

no test coverage detected