QPair Proxy Page
Types
Functions
| decltype(auto) | qMakePair(T1 &&value1, T2 &&value2) |
Type Documentation
[alias] template <typename T1, typename T2> QPair
\since6.0 Typedef for std::pair<T1, T2>.
Function Documentation
[constexpr noexcept(...)] template <typename T1, typename T2> decltype(auto) qMakePair(T1 &&value1, T2 &&value2)
\deprecated
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.
Note: This function does not throw any exception when "noexcept(std::make_pair(std::forward<T1>(value1), std::forward<T2>(value2)))" is true.