Obsolete Members for <QPair>

クラス<QPair> の以下のメンバーは非推奨です。これらは古いソース・コードの動作を維持するために提供されています。新しいコードでは使用しないことを強くお勧めします。

関数

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

関数のドキュメント

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

この関数は非推奨である。新しいコードでは使用しないことを強く推奨する。

qMakePairは引数をstd::make_pairに転送し、結果のstd::pairを返します。これは後方互換性のために提供されている。代わりに std::make_pair を直接使用してください。

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

© 2025 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.