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

Function parse_string

include/chaiscript/dispatchkit/bootstrap.hpp:114–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112 /// uses ostream operator >> to perform the conversion
113 template<typename Input>
114 auto parse_string(const std::string &i)
115 -> typename std::enable_if<
116 !std::is_same<Input, wchar_t>::value
117 && !std::is_same<Input, char16_t>::value
118 && !std::is_same<Input, char32_t>::value,
119 Input>::type
120 {
121 std::stringstream ss(i);
122 Input t;
123 ss >> t;
124 return t;
125 }
126
127 template<typename Input>
128 auto parse_string(const std::string &)

Callers 1

parse_nextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected