Obsolete Members for <QPair>

<QPair> クラスの以下のメンバーは非推奨となっています。これらは、古いソースコードが動作し続けるように提供されているものです。新しいコードでの使用は強く推奨しません。

関数

(deprecated in 6.0) decltype(auto) qMakePair(T1 &&value1, T2 &&value2)

関数のドキュメント

[constexpr noexcept(...), deprecated in 6.0] template <typename T1, typename T2> decltype(auto) qMakePair(T1 &&value1, T2 &&value2)

この関数はバージョン 6.0 以降、非推奨となっています。新しいコードでの使用は強く推奨しません。

qMakePair は、引数を std::make_pair に渡し、結果として得られる std::pair を返します。これは下位互換性を確保するために提供されています。代わりに std::make_pair を直接使用してください。

注: noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))) がtrue の場合、この関数はnoexceptとなります 。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.