Securely deallocate a std::vector or a std::string