4#ifndef TETL_CHARCONV_TO_CHARS_HPP
5#define TETL_CHARCONV_TO_CHARS_HPP
7#include <etl/_concepts/integral.hpp>
8#include <etl/_concepts/same_as.hpp>
9#include <etl/_cstddef/size_t.hpp>
10#include <etl/_iterator/distance.hpp>
11#include <etl/_strings/from_integer.hpp>
12#include <etl/_system_error/errc.hpp>
39 requires(
not same_as<T,
bool>)
45 auto const res =
strings::from_integer<T, options>(val, first, len, base);
constexpr auto distance(It first, It last) -> typename iterator_traits< It >::difference_type
Returns the number of hops from first to last.
Definition distance.hpp:17
from_integer_error
Definition from_integer.hpp:20
Definition adjacent_find.hpp:9
constexpr auto to_chars(char *first, char *last, T val, int base=10) -> to_chars_result
Converts value into a character string by successively filling the range [first, last),...
Definition to_chars.hpp:40
errc
The scoped enumeration etl::errc defines the values of portable error conditions.
Definition errc.hpp:14
constexpr auto to_chars(char *, char *, bool, int=10) -> to_chars_result=delete
Definition from_integer.hpp:16
bool terminate_with_null
Definition from_integer.hpp:17
Primitive numerical output conversion.
Definition to_chars.hpp:17
etl::errc ec
Definition to_chars.hpp:19
constexpr operator bool() const noexcept
Definition to_chars.hpp:21
char * ptr
Definition to_chars.hpp:18
friend auto operator==(to_chars_result const &, to_chars_result const &) -> bool=default