[docs] QMap: fix missing toStdMap()&& overload docs

Amends 14090760a87f23509b7bb5ad846537c766cb44a5.

I tried to find a linkable definition of valid-but-unspecified on
en.cppreference.com, but failed, so I'm using partially-formed like
everywhere else in Qt docs.

Ideally, we'd have the discussion of partially-formed (and
valid-but-unspecified) in some extra page and simply link to
it. Created QTBUG-106251 to track the issue.

Change-Id: I04c60cf903b2617c89467d1d040d5aebb7eccd53
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
(cherry picked from commit 3cd9536b7f6224b1c8fea2e40afdb5fe7b441f82)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Marc Mutz 2022-09-01 16:08:40 +02:00 committed by Qt Cherry-pick Bot
parent dcd2735dca
commit 6a54d8b7b4

View File

@ -202,6 +202,15 @@
Returns an STL map equivalent to this QMap.
*/
/*! \fn template <class Key, class T> std::map<Key, T> QMap<Key, T>::toStdMap() &&
\overload
\since 6.0
\note Calling this function will leave this QMap in the partially-formed state, in which
the only valid operations are destruction or assignment of a new value.
*/
/*! \fn template <class Key, class T> bool QMap<Key, T>::operator==(const QMap<Key, T> &lhs, const QMap<Key, T> &rhs)
Returns \c true if \a lhs is equal to \a rhs; otherwise returns