Adding simple interface for clearing classes with a swap member function.