Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcompare.cpp
Go to the documentation of this file.
1
// Copyright (C) 2020 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com, author Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
2
// Copyright (C) 2023 The Qt Company Ltd.
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5
#include "
qcompare.h
"
6
7
#ifdef __cpp_lib_bit_cast
8
#include <bit>
9
#endif
10
11
QT_BEGIN_NAMESPACE
12
13
#ifdef __cpp_lib_three_way_comparison
14
#ifdef __cpp_lib_bit_cast
15
#define CHECK(type, flag) \
16
static_assert(std::bit_cast<Qt:: type ## _ordering>(std:: type ## _ordering:: flag) \
17
== Qt:: type ## _ordering :: flag); \
18
static_assert(std::bit_cast<std:: type ## _ordering>(Qt:: type ## _ordering:: flag) \
19
== std:: type ## _ordering :: flag) \
20
/* end */
21
CHECK
(partial, unordered);
22
CHECK
(partial, less);
23
CHECK
(partial, greater);
24
CHECK
(partial, equivalent);
25
CHECK
(weak, less);
26
CHECK
(weak, greater);
27
CHECK
(weak, equivalent);
28
CHECK
(
strong
, less);
29
CHECK
(
strong
, greater);
30
CHECK
(
strong
,
equal
);
31
CHECK
(
strong
, equivalent);
32
#undef CHECK
33
#endif
// __cpp_lib_bit_cast
34
#endif
//__cpp_lib_three_way_comparison
35
36
291
302
1357
QT_END_NAMESPACE
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
CHECK
#define CHECK(cvref)
Definition
q23utility.cpp:14
qcompare.h
equal
static bool equal(const QChar *a, int l, const char *b)
Definition
qurlidna.cpp:338
strong
QSharedPointer< int > strong
Definition
src_corelib_tools_qsharedpointer.cpp:105
qtbase
src
corelib
global
qcompare.cpp
Generated by
1.10.0