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
comparisoncategory.cpp
Go to the documentation of this file.
1// Copyright (C) 2023 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4/*!
5 \enum ComparisonCategory
6 \internal
7
8 \value None No comparison is defined.
9 \value Strong Strong comparison is defined, see std::strong_ordering.
10 \value Weak Weak comparison is defined, see std::weak_ordering.
11 \value Partial A partial ordering is defined, see std::partial_ordering.
12 \value Equality Only (in)equality comparison is defined.
13*/
14
15/*!
16 \fn static inline std::string comparisonCategoryAsString(const ComparisonCategory &category)
17 \internal
18
19 Returns a string representation of the comparison category \a category.
20*/
21
22/*!
23 \fn static ComparisonCategory comparisonCategoryFromString(const std::string &string)
24 \internal
25
26 Returns a matching comparison category for a \a string representation, or
27 ComparisonCategory::None for an unknown category string.
28*/