Obsolete Members for <QPair>

Los siguientes miembros de la clase <QPair> son obsoletos. Se proporcionan para que el código fuente antiguo siga funcionando. Desaconsejamos su uso en código nuevo.

Funciones

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

Documentación de funciones

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

Esta función está obsoleta. Desaconsejamos su uso en código nuevo.

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

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.