MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stringstream_parser

Function stringstream_parser

Source/Utils/cxxopts.hpp:924–931  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

922
923 template <typename T>
924 void stringstream_parser(const std::string& text, T& value)
925 {
926 std::stringstream in(text);
927 in >> value;
928 if (!in) {
929 throw_or_mimic<argument_incorrect_type>(text);
930 }
931 }
932
933 template <typename T,
934 typename std::enable_if<std::is_integral<T>::value>::type* = nullptr

Callers 1

parse_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected