Obsolete Members for <QPair>

Os seguintes membros da classe ` <QPair> ` estão obsoletos. Eles são fornecidos para manter o código-fonte antigo em funcionamento. Recomendamos enfaticamente que não sejam utilizados em código novo.

Funções

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

Documentação das funções

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

Esta função está obsoleta desde a versão 6.0. Recomendamos enfaticamente que não seja utilizada em código novo.

qMakePair encaminha seus argumentos para std::make_pair e retorna o std::pair resultante. Ela é fornecida para fins de compatibilidade com versões anteriores. Em vez disso, use std::make_pair diretamente.

Observação: esta função é `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.