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 <__availability>
14 #include <__charconv/chars_format.h>
15 #include <__charconv/to_chars_result.h>
18 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
19 # pragma GCC system_header
22 _LIBCPP_BEGIN_NAMESPACE_STD
24 #if _LIBCPP_STD_VER >= 17
26 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
27 to_chars(char* __first
, char* __last
, float __value
);
29 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
30 to_chars(char* __first
, char* __last
, double __value
);
32 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
33 to_chars(char* __first
, char* __last
, long double __value
);
35 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
36 to_chars(char* __first
, char* __last
, float __value
, chars_format __fmt
);
38 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
39 to_chars(char* __first
, char* __last
, double __value
, chars_format __fmt
);
41 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
42 to_chars(char* __first
, char* __last
, long double __value
, chars_format __fmt
);
44 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
45 to_chars(char* __first
, char* __last
, float __value
, chars_format __fmt
, int __precision
);
47 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
48 to_chars(char* __first
, char* __last
, double __value
, chars_format __fmt
, int __precision
);
50 _LIBCPP_AVAILABILITY_TO_CHARS_FLOATING_POINT _LIBCPP_EXPORTED_FROM_ABI to_chars_result
51 to_chars(char* __first
, char* __last
, long double __value
, chars_format __fmt
, int __precision
);
52 #endif // _LIBCPP_STD_VER >= 17
54 _LIBCPP_END_NAMESPACE_STD
56 #endif // _LIBCPP___CHARCONV_TO_CHARS_FLOATING_POINT_H