basic_ios::tie

basic_ios::tie

basic_ostream<E, T> *tie() const;
basic_ostream<E, T> *tie(basic_ostream<E, T> *str);

The first member function returns the stored tie pointer. The second member function stores str in the tie pointer and returns its previous stored value.