Obsolete Members for <QPair>

I seguenti membri della classe ` <QPair> ` sono deprecati. Sono forniti per garantire il funzionamento del codice sorgente esistente. Si sconsiglia vivamente di utilizzarli nel codice nuovo.

Funzioni

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

Documentazione delle funzioni

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

Questa funzione è deprecata a partire dalla versione 6.0. Si sconsiglia vivamente di utilizzarla nel codice nuovo.

qMakePair inoltra i propri argomenti a std::make_pair e restituisce la coppia std::pair risultante. È fornita per motivi di compatibilità con le versioni precedenti. Utilizzare invece direttamente std::make_pair.

Nota: questa funzione è noexcept quando ` noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))) ` è ` true`.

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