Obsolete Members for <QPair>

Los siguientes miembros de la clase ` <QPair> ` están obsoletos. Se incluyen para que el código fuente antiguo siga funcionando. Recomendamos encarecidamente no utilizarlos en código nuevo.

Funciones

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

Documentación de funciones

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

Esta función está obsoleta desde la versión 6.0. Recomendamos encarecidamente no utilizarla en código nuevo.

qMakePair reenvía sus argumentos a std::make_pair y devuelve el std::pair resultante. Se proporciona por motivos de compatibilidad con versiones anteriores. En su lugar, utiliza directamente std::make_pair.

Nota: Esta función es «noexcept» cuando ` noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))) ` es ` 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.