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
7
8namespace 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
constexpr auto to_floating_point(etl::string_view str) noexcept -> to_floating_point_result< Float >
Definition to_floating_point.hpp:27
Definition adjacent_find.hpp:8
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