3#ifndef TETL_CHARCONV_FROM_CHARS_HPP
4#define TETL_CHARCONV_FROM_CHARS_HPP
16 char const*
ptr{
nullptr};
19 [[nodiscard]]
constexpr explicit operator bool() const noexcept {
return ec ==
etl::errc{}; }
30template <
integral Int>
32[[nodiscard]]
constexpr auto from_chars(
char const* first,
char const* last, Int& value,
int base = 10)
The concept same_as<T, U> is satisfied if and only if T and U denote the same type....
Definition same_as.hpp:19
constexpr auto end(C &c) -> decltype(c.end())
Returns an iterator to the end (i.e. the element after the last element) of the given container c or ...
Definition end.hpp:14
@ overflow
Definition to_integer.hpp:82
@ invalid_input
Definition to_integer.hpp:81
constexpr auto to_integer(string_view str, Int base=Int(10)) noexcept -> to_integer_result< Int >
Definition to_integer.hpp:93
Definition adjacent_find.hpp:8
constexpr auto from_chars(char const *first, char const *last, Int &value, int base=10) -> from_chars_result
Analyzes the character sequence [first,last) for a pattern described below. If no characters match th...
Definition from_chars.hpp:32
errc
The scoped enumeration etl::errc defines the values of portable error conditions that correspond to t...
Definition errc.hpp:12
@ result_out_of_range
Definition errc.hpp:80
@ invalid_argument
Definition errc.hpp:41
Primitive numerical input conversion.
Definition from_chars.hpp:15
friend auto operator==(from_chars_result const &, from_chars_result const &) -> bool=default
etl::errc ec
Definition from_chars.hpp:17
char const * ptr
Definition from_chars.hpp:16
Definition to_integer.hpp:74