28 if constexpr (std::is_integral_v<T>)
29 return static_cast<T
>(std::atoll(
env_value));
30 else if constexpr (std::is_floating_point_v<T>)
31 return static_cast<T
>(std::atof(
env_value));
49 if constexpr (std::is_integral_v<T>)
50 while (std::getline(
ss,
item,
','))
51 result.emplace_back(
static_cast<T
>(std::atoll(
item.c_str())));
52 else if constexpr (std::is_floating_point_v<T>)
53 while (std::getline(
ss,
item,
','))
54 result.emplace_back(
static_cast<T
>(std::atof(
item.c_str())));
56 while (std::getline(
ss,
item,
','))
T getenv(std::string variable, const T &default_value)
Returns the value from an environment variable.
Definition getenv.hpp:24
Definition boundary.hpp:22
constexpr bool is_SplineType_v
Alias to the value of is_SplineType.
Definition bspline.hpp:3243