wipe for c++ impl