27 Jun
2019
27 Jun
'19
6:53 a.m.
Am 27.06.19 um 08:45 schrieb degski via Boost:
As from C++11 std::swap is marked noexcept, so yes. As from C++20 it's also constexpr, so now it can definitely cannot throw.
degski Are you sure? According to https://en.cppreference.com/w/cpp/algorithm/swap this is only non-throwing if it can be moved without throwing