// // Spezialized version of swap for data type "MyType" // swaps only value, not status // #include class MyType { public: bool status; int value; }; namespace std { template<> // specialization void swap(MyType& a,MyType& b) noexcept (true) { std::swap(a.value,b.value); // swap only values } } int main() { using std::cout; MyType x; x.status = true; x.value = 11111; MyType y; y.status = false; y.value = 22222; cout<<"before: x "<