[ofstream.assign] (original) (raw)

See [ofstream.swap].