26#ifndef quantlib_null_hpp
27#define quantlib_null_hpp
35 #ifdef QL_NULL_AS_FUNCTIONS
40 if constexpr (std::is_floating_point_v<T>) {
42 return (std::numeric_limits<float>::max)();
43 }
else if constexpr (std::is_integral_v<T>) {
45 return (std::numeric_limits<int>::max)();
63 if constexpr (std::is_floating_point_v<T>) {
65 return (std::numeric_limits<float>::max)();
66 }
else if constexpr (std::is_integral_v<T>) {
68 return (std::numeric_limits<int>::max)();
template class providing a null value for a given type.