2 //===----------------------------------------------------------------------===//
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
10 #ifndef _LIBCPP___CHARCONV_TO_CHARS_FLOATING_POINT_H
11 #define _LIBCPP___CHARCONV_TO_CHARS_FLOATING_POINT_H
13 #include <__charconv/chars_format.h>
14 #include <__charconv/to_chars_result.h>
17 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
18 # pragma GCC system_header
21 _LIBCPP_BEGIN_NAMESPACE_STD
23 #if _LIBCPP_STD_VER >= 17
25 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
26 to_chars(char* __first
, char* __last
, float __value
);
28 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
29 to_chars(char* __first
, char* __last
, double __value
);
31 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
32 to_chars(char* __first
, char* __last
, long double __value
);
34 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
35 to_chars(char* __first
, char* __last
, float __value
, chars_format __fmt
);
37 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
38 to_chars(char* __first
, char* __last
, double __value
, chars_format __fmt
);
40 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
41 to_chars(char* __first
, char* __last
, long double __value
, chars_format __fmt
);
43 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
44 to_chars(char* __first
, char* __last
, float __value
, chars_format __fmt
, int __precision
);
46 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
47 to_chars(char* __first
, char* __last
, double __value
, chars_format __fmt
, int __precision
);
49 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
50 to_chars(char* __first
, char* __last
, long double __value
, chars_format __fmt
, int __precision
);
51 #endif // _LIBCPP_STD_VER >= 17
53 _LIBCPP_END_NAMESPACE_STD
55 #endif // _LIBCPP___CHARCONV_TO_CHARS_FLOATING_POINT_H