Merge topic 'string-swap-noexcept'

873b8244f0 String: Make swap method noexcept

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9754
This commit is contained in:
Brad King
2024-08-20 15:51:49 +00:00
committed by Kitware Robot
+1 -1
View File
@@ -518,7 +518,7 @@ public:
*this = std::move(s);
}
void swap(String& other)
void swap(String& other) noexcept
{
std::swap(this->string_, other.string_);
std::swap(this->view_, other.view_);