tetl
0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
atof.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSL-1.0
2
3
#ifndef TETL_CSTDLIB_ATOF_HPP
4
#define TETL_CSTDLIB_ATOF_HPP
5
6
#include <
etl/_strings/to_floating_point.hpp
>
7
8
namespace
etl
{
9
11
[[nodiscard]]
constexpr
auto
atof
(
char
const
* str)
noexcept
->
double
12
{
13
return
strings::to_floating_point<double>
(str).value;
14
}
15
16
}
// namespace etl
17
18
#endif
// TETL_CSTDLIB_ATOF_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::atof
constexpr auto atof(char const *str) noexcept -> double
Interprets a floating point value in a byte string pointed to by str.
Definition
atof.hpp:11
to_floating_point.hpp
include
etl
_cstdlib
atof.hpp
Generated on Sat Mar 8 2025 16:19:59 for tetl by
1.14.0