tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
strtold.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CSTDLIB_STRTOLD_HPP
4
#define TETL_CSTDLIB_STRTOLD_HPP
5
6
#include <
etl/_strings/to_floating_point.hpp
>
7
8
namespace
etl
{
9
17
[[nodiscard]]
constexpr
auto
strtold
(
char
const
* str,
char
const
** last =
nullptr
) noexcept ->
long
double
18
{
19
auto
result =
strings::to_floating_point<long double>
(str);
20
if
(last !=
nullptr
) {
21
*last = result.end;
22
}
23
return
result.value;
24
}
25
26
}
// namespace etl
27
28
#endif
// TETL_CSTDLIB_STRTOLD_HPP
etl::strings::to_floating_point
constexpr auto to_floating_point(etl::string_view str) noexcept -> to_floating_point_result< Float >
Definition
to_floating_point.hpp:27
etl
Definition
adjacent_find.hpp:8
etl::strtold
constexpr auto strtold(char const *str, char const **last=nullptr) noexcept -> long double
Interprets a floating point value in a byte string pointed to by str.
Definition
strtold.hpp:17
to_floating_point.hpp
include
etl
_cstdlib
strtold.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0