Refactoring basic_string_swap() and basic_string_clear().