|
guanaqo
develop
Utilities for scientific software
|
Portable wrapper around std::from_chars for integers and floats.
Definition in file from_chars-wrapper.hpp.
#include <charconv>#include <stdexcept>#include <system_error>Go to the source code of this file.
Namespaces | |
| namespace | guanaqo |
Macros | |
| #define | GUANAQO_USE_FROM_CHARS_INT 0 |
| #define | GUANAQO_USE_FROM_CHARS_FLOAT 0 |
Functions | |
| template<class T> | |
| std::from_chars_result | guanaqo::from_chars (const char *first, const char *last, T &value, std::chars_format fmt=std::chars_format::general) |
| template<class T> | |
| std::from_chars_result | guanaqo::from_chars (const char *first, const char *last, T &value, int base=10) |
| template<class T, class... Args> | |
| std::from_chars_result | guanaqo::from_chars (const char *first, const char *last, T &value, std::chars_format fmt=std::chars_format::general) |
| template<class T, class... Args> | |
| std::from_chars_result | guanaqo::from_chars (const char *first, const char *last, T &value, int base=10) |
| #define GUANAQO_USE_FROM_CHARS_INT 0 |
Definition at line 37 of file from_chars-wrapper.hpp.
| #define GUANAQO_USE_FROM_CHARS_FLOAT 0 |
Definition at line 38 of file from_chars-wrapper.hpp.