以下成员源于类 <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
.