diff options
| author | Dheerendra Purohit <dheerendra@pthinks.com> | 2024-10-18 18:34:42 +0530 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2024-11-19 08:56:40 +0000 |
| commit | a9fe57fefaac0cb047e4c02e0b8c8f8327e0a58c (patch) | |
| tree | 3aa3b97cb3fda483b33ab67bb39c27a17c2346d1 /src/corelib/io/qdebug.cpp | |
| parent | 4f9cbd5b2892f0f72c74db05d05c67f25e7c99e7 (diff) | |
QDebug: add streaming operators for std::unordered_map
The stream insertion operator for QDebug is not overloaded
to handle std::unordered_map
Overload the stream insertion operator for QDebug
to handle std::unordered_map
[ChangeLog][QtCore][QDebug] Added support for std::unordered_map.
Fixes: QTBUG-130290
Change-Id: I96e82f90c310dcac4a6e4d35651fb1adb6d6293a
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qdebug.cpp')
| -rw-r--r-- | src/corelib/io/qdebug.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/corelib/io/qdebug.cpp b/src/corelib/io/qdebug.cpp index d4cc46dbe42..970fe15a776 100644 --- a/src/corelib/io/qdebug.cpp +++ b/src/corelib/io/qdebug.cpp @@ -1189,6 +1189,15 @@ QDebug &QDebug::putTupleLikeImplImpl(const char *ns, const char *what, */ /*! + \fn template <typename Key, typename T, typename Hash, typename KeyEqual, typename Alloc> QDebug operator<<(QDebug debug, const std::unordered_map<Key, T, Compare, Alloc> &unordered_map) + \relates QDebug + \since 6.9 + + Writes the contents of \a map to \a debug. Both \c Key and + \c T need to support streaming into QDebug. +*/ + +/*! \fn template <class Key, class T> QDebug operator<<(QDebug debug, const QHash<Key, T> &hash) \relates QDebug |
