From a8c9a5617c72ad2e55bf497df6ff2c2e141cbdef Mon Sep 17 00:00:00 2001 From: Dheerendra Purohit Date: Fri, 25 Oct 2024 21:38:54 +0530 Subject: 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 --- src/corelib/io/qdebug.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/corelib/io/qdebug.cpp') 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 @@ -1197,6 +1197,16 @@ QDebug &QDebug::putTupleLikeImplImpl(const char *ns, const char *what, \c T need to support streaming into QDebug. */ +/*! + \fn template QDebug operator<<(QDebug debug, const std::unordered_set &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 QDebug operator<<(QDebug debug, const QHash &hash) \relates QDebug -- cgit v1.2.3