Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtformat_impl.h
Go to the documentation of this file.
1
// Copyright (C) 2024 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:header-decls-only
4
5
#
ifndef
QTFORMAT_IMPL_H
6
#
define
QTFORMAT_IMPL_H
7
8
#
if
0
9
#
pragma
qt_no_master_include
10
#
pragma
qt_sync_skip_header_check
11
#
endif
12
13
#
include
<
QtCore
/
qsystemdetection
.
h
>
14
#
include
<
QtCore
/
qtconfigmacros
.
h
>
15
16
// Users can disable std::format support in their
17
// projects by using this definition.
18
#
if
!
defined
(
QT_NO_STD_FORMAT_SUPPORT
)
&&
defined
(
__cpp_lib_format
)
&&
__cpp_lib_format
>=
202106L
19
20
#
include
<
format
>
21
22
// If this macro is defined, std::format support is actually available.
23
// Use it to provide the implementation!
24
// Note that any out-of-line helper function should not depend on this
25
// definition, as it should be unconditionally available even in C++17 builds
26
// to keep BC.
27
#
define
QT_SUPPORTS_STD_FORMAT
1
28
29
#
endif
// __cpp_lib_format && !QT_NO_STD_FORMAT_SUPPORT
30
31
#
endif
// QTFORMAT_IMPL_H
qtbase
src
corelib
text
qtformat_impl.h
Generated on
for Qt by
1.14.0