OpenSWMM Engine  6.0.0-alpha.1
Data-oriented, plugin-extensible SWMM Engine (6.0.0-alpha.1)
Loading...
Searching...
No Matches

Portable from_chars for floating-point types. More...

#include <charconv>
#include <cstdlib>
#include <system_error>
#include <string>
Include dependency graph for charconv_compat.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openswmm
 

Functions

std::from_chars_result openswmm::from_chars_double (const char *first, const char *last, double &value) noexcept
 Locale-independent parse of a double from a character range.
 

Detailed Description

Portable from_chars for floating-point types.

Apple libc++ does not support std::from_chars for floating-point types. This header provides a drop-in wrapper that uses std::strtod as a fallback when the standard library lacks the feature.