#include <boost/version.hpp>
#include <array>
#include <assert.h>
#include <cctype>
#include <charconv>
#include "utils/optional_fwd.hpp"
#include <string_view>
#include <string>
#include <stdexcept>
Go to the source code of this file.
|
| template<typename... T> |
| to_chars_result | utils::charconv::to_chars (char *first, char *last, T &&... value) |
| |
| template<typename T > |
| std::enable_if_t< std::is_integral_v< T >, std::from_chars_result > | utils::charconv::from_chars (const char *first, const char *last, T &value, int base=10) |
| |
| template<typename T > |
| std::enable_if_t< std::is_floating_point_v< T >, from_chars_result > | utils::charconv::from_chars (const char *first, const char *last, T &value, chars_format fmt=chars_format::general) |
| |
| void | utils::trim_for_from_chars (std::string_view &v) |
| |
| double | utils::stod (std::string_view str) |
| | Same interface as std::stod and meant as a drop in replacement, except: More...
|
| |
| int | utils::stoi (std::string_view str) |
| | Same interface as std::stoi and meant as a drop in replacement, except: More...
|
| |
| template<typename T > |
| auto | utils::from_chars (std::string_view str, int base=10) -> std::enable_if_t< std::is_integral_v< T >, utils::optional< T >> |
| |
| template<typename T > |
| auto | utils::from_chars (std::string_view str, utils::charconv::chars_format fmt=utils::charconv::chars_format::general) -> std::enable_if_t< std::is_floating_point_v< T >, utils::optional< T >> |
| |