Provides std::from_chars and std::to_chars if not defined in the stl <charconv> header. More...
#include <utility>
#include <algorithm>
#include <cerrno>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <cstring>
#include <limits>
#include <type_traits>
#include <seqan3/core/char_operations/predicate.hpp>
#include <seqan3/core/concept/core_language.hpp>
#include <seqan3/std/concepts>
Classes | |
struct | std::from_chars_result |
Result type of std::from_chars. More... | |
struct | std::to_chars_result |
Result type of std::to_chars. More... | |
Namespaces | |
seqan3 | |
The main SeqAn3 namespace. | |
std | |
SeqAn specific customisations in the standard namespace. | |
Enumerations | |
enum | std::chars_format { std::chars_format::scientific = 0x1, std::chars_format::fixed = 0x2, std::chars_format::hex = 0x4, std::chars_format::general = fixed | scientific } |
A BitmaskType used to specify floating-point formatting for std::to_chars and std::from_chars. More... | |
Functions | |
template<seqan3::floating_point floating_point_type> | |
std::from_chars_result | std::from_chars (char const *first, char const *last, floating_point_type &value, std::chars_format fmt=std::chars_format::general) noexcept |
Parse a char sequence into an floating point value. More... | |
template<std::integral value_type> | |
std::from_chars_result | std::from_chars (char const *first, char const *last, value_type &value) noexcept |
std::from_chars overload for integrals with default base = 10. | |
template<std::integral value_type> | |
std::from_chars_result | std::from_chars (char const *first, char const *last, value_type &value, int base) noexcept |
Parse a char sequence into an integral. More... | |
template<seqan3::floating_point floating_point_type> | |
std::to_chars_result | std::to_chars (char *first, char *last, floating_point_type value) noexcept |
std::to_chars overload for floating point via a std::stringstream for default base = 10. | |
template<std::integral value_type> | |
std::to_chars_result | std::to_chars (char *first, char *last, value_type value) noexcept |
std::to_chars overload with default base = 10. | |
template<std::integral value_type> | |
std::to_chars_result | std::to_chars (char *first, char *last, value_type value, int base) noexcept |
Convert an integral into a char sequence. More... | |
Provides std::from_chars and std::to_chars if not defined in the stl <charconv> header.