compressed_pair: noexcept swap

This commit is contained in:
Michele Caini
2025-01-21 11:01:12 +01:00
parent 8bf0f622e6
commit cdfb1828dd

View File

@@ -240,7 +240,7 @@ compressed_pair(Type &&, Other &&) -> compressed_pair<std::decay_t<Type>, std::d
* @param rhs A valid compressed pair object.
*/
template<typename First, typename Second>
constexpr void swap(compressed_pair<First, Second> &lhs, compressed_pair<First, Second> &rhs) {
constexpr void swap(compressed_pair<First, Second> &lhs, compressed_pair<First, Second> &rhs) noexcept {
lhs.swap(rhs);
}