以下成員源於類 <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
.