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
q23utility.cpp
Go to the documentation of this file.
1
// Copyright (C) 2023 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:default
4
5
#
include
<
QtCore
/
q23utility
.
h
>
6
7
QT_BEGIN_NAMESPACE
8
9
#
define
CHECK2
(
cvref_in
,
cvref_out
)
10
static_assert
(
std
::
is_same_v
<
11
decltype
(
q23
::
forward_like
<
int
cvref_in
>
(
std
::
declval
<
long
&
>
(
)
)
)
,
12
long
cvref_out
13
>
,
"oops: cvref '"
#
cvref_in
"' doesn't work"
)
14
/* end */
15
#
define
CHECK
(
cvref
)
CHECK2
(
cvref
,
cvref
)
16
CHECK2
(
/**/
, &&);
17
CHECK
(&);
18
CHECK
(&&);
19
CHECK2
(
const
,
const
&&);
20
CHECK
(
const
&);
21
CHECK
(
const
&&);
22
// volatile is not supported
23
#
undef
CHECK
24
#
undef
CHECK2
25
26
QT_END_NAMESPACE
CHECK
#define CHECK(cvref)
Definition
q23utility.cpp:15
CHECK2
#define CHECK2(cvref_in, cvref_out)
Definition
q23utility.cpp:9
qtbase
src
corelib
global
q23utility.cpp
Generated on
for Qt by
1.16.1