File indexing completed on 2026-10-04 09:19:06
0001
0002
0003
0004
0005 #ifndef QCOMPARE_IMPL_H
0006 #define QCOMPARE_IMPL_H
0007
0008 #if 0
0009 #pragma qt_sync_skip_header_check
0010 #pragma qt_sync_stop_processing
0011 #endif
0012
0013 #include <QtCore/qtconfigmacros.h>
0014 #include <QtCore/qcompilerdetection.h>
0015
0016 #include <type_traits>
0017
0018 QT_BEGIN_NAMESPACE
0019
0020 namespace QtPrivate {
0021
0022
0023
0024 class CompareAgainstLiteralZero {
0025 public:
0026 using SafeZero = void (CompareAgainstLiteralZero::*)();
0027 Q_IMPLICIT constexpr CompareAgainstLiteralZero(SafeZero) noexcept {}
0028
0029 template <typename T, std::enable_if_t<std::is_null_pointer_v<T>, bool> = true>
0030 CompareAgainstLiteralZero(T) = delete;
0031 };
0032
0033 }
0034
0035 QT_END_NAMESPACE
0036
0037 #endif