Home | History | Annotate | Download | only in utility

Lines Matching defs:result

118 static inline bool convertTo(const std::string &str, T &result)
122 * with this type, thus that the result is undefined. */
142 ss >> std::hex >> result;
148 ss >> result;
155 static inline bool convertToVia(const std::string &str, T &result)
159 * with this type, thus that the result is undefined. */
164 * convertTo<Via> and then safely cast the result into a T. */
175 result = static_cast<T>(res);
189 * Result may be modified, even in case of failure.
192 * @param[out] result reference to object where to store the result.
197 static inline bool convertTo(const std::string &str, T &result)
199 return details::convertTo<T>(str, result);
215 * @param[out] result reference to object where to store the result.
220 inline bool convertTo<unsigned char>(const std::string &str, unsigned char &result)
222 return details::convertToVia<unsigned char, unsigned int>(str, result);
230 inline bool convertTo<signed char>(const std::string &str, signed char &result)
232 return details::convertToVia<signed char, int>(str, result);
245 * @param[out] result reference to object where to store the result.
250 inline bool convertTo<float>(const std::string &str, float &result)
252 if (!details::convertTo(str, result)) {
256 if (!std::isfinite(result)) {
274 * @param[out] result reference to object where to store the result.
279 inline bool convertTo<double>(const std::string &str, double &result)
281 if (!details::convertTo(str, result)) {
285 if (!std::isfinite(result)) {
305 * @param[out] result reference to object where to store the result.
310 inline bool convertTo<bool>(const std::string &str, bool &result)
313 result = false;
318 result = true;