value_utils.hpp

Simple functions to manipulate values.

This file is part of Empirical, https://github.com/devosoft/Empirical Copyright (C) 2019-2024 Michigan State University MIT Software license; see doc/LICENSE.md

Note

Status: ALPHA

Defines

INCLUDE_EMP_TOOLS_VALUE_UTILS_HPP_GUARD

Functions

template<typename T>
inline double ToDouble(const T &in)
template<>
inline double ToDouble<std::string>(const std::string &in)
template<>
inline double ToDouble<String>(const String &in)
template<typename T>
inline T FromDouble(double in)
template<>
inline std::string FromDouble<std::string>(double in)
template<>
inline String FromDouble<String>(double in)