Obsolete Members for <QPair>

以下成员源于类 <QPair> 被弃用。 提供它们是为使旧源代码能继续工作。强烈建议不要在新代码中使用它们。

函数

(弃用) decltype(auto) qMakePair (T1 && value1 , T2 && value2 )

函数文档编制

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

This function is deprecated. We strongly advise against using it in new code.

qMakePair forwards its arguments to std::make_pair, and returns the resulting std::pair. It is provided for backwards compatibility. Use std::make_pair directly instead.

注意: This function is noexcept when noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2))) is true .