| 5252 | /// @return true if the conversion completes successfully, false otherwise. |
| 5253 | template <typename FloatType> |
| 5254 | inline bool atof_impl(const char* p_begin, const char* p_end, FloatType& f) noexcept { |
| 5255 | static_assert(std::is_floating_point_v<FloatType>, "atof_impl() accepts floating point types as an output type"); |
| 5256 | if (auto [ptr, ec] = std::from_chars(p_begin, p_end, f); ec == std::errc {}) { |
| 5257 | return ptr == p_end; |
| 5258 | } |
| 5259 | return false; |
| 5260 | } |
| 5261 | |
| 5262 | #else |
| 5263 |