summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qdebug.cpp
diff options
context:
space:
mode:
authorDheerendra Purohit <dheerendra@pthinks.com>2024-10-25 21:38:54 +0530
committerDheerendra Purohit <dheerendra@pthinks.com>2024-11-20 22:42:38 +0000
commita8c9a5617c72ad2e55bf497df6ff2c2e141cbdef (patch)
treec1ab31f7e107dbfceb3aa3cfb540e3ea8a734131 /src/corelib/io/qdebug.cpp
parent7be9b5997d84910eeacead251ccdf002f1754147 (diff)
QDebug: add streaming operators for std::unordered_set
The stream insertion operator for QDebug is not overloaded to handle std::unordered_set Overload the stream insertion operator for QDebug to handle std::unordered_set [ChangeLog][QtCOre][QDebug] Added support for std::unordered_set. Fixes: QTBUG-130481 Change-Id: I75a1f62f9ecb6b06ba45cc00d789cd3f3886b4c7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
-rw-r--r--src/corelib/io/qdebug.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp
index 970fe15a776..c08bb07ca85 100644
--- a/src/corelib/io/qdebug.cpp
+++ b/src/corelib/io/qdebug.cpp
@@ -1198,6 +1198,16 @@ QDebug &QDebug::putTupleLikeImplImpl(const char *ns, const char *what,
*/
/*!
+ \fn template <typename Key, typename Hash, typename KeyEqual, typename Alloc> QDebug operator<<(QDebug debug, const std::unordered_set<Key, Hash, KeyEqual, Alloc> &unordered_set)
+ \relates QDebug
+ \since 6.9
+
+Writes the contents of \a unordered_set to \a debug. The \c Key type
+needs to support streaming into QDebug.
+*/
+
+
+/*!
\fn template <class Key, class T> QDebug operator<<(QDebug debug, const QHash<Key, T> &hash)
\relates QDebug