Doxygen

template<class _CharT, class _Traits>
bool basic_ostream< _CharT, _Traits >::_M_copy_unbuffered ( basic_streambuf< _CharT, _Traits > *  __from,
basic_streambuf< _CharT, _Traits > *  __to 
) [private]

Definition at line 145 of file _ostream.c.

                                                               {
  typedef _SPutBackC<_CharT, _Traits> _SPutBackCGuard;
  bool __any_inserted = false;
  int_type __c;

  _STLP_TRY {
    _SPutBackCGuard __cguard(__from);
    for (;;) {
      _STLP_TRY {
        __c = __from->sbumpc();
      }
      _STLP_CATCH_ALL {
        this->_M_handle_exception(ios_base::failbit);
        break;
      }

      if (this->_S_eof(__c))
        break;

      __cguard.guard(__c);
#if defined (__DMC__)
      _STLP_TRY {
#endif
      if (this->_S_eof(__to->sputc(_Traits::to_char_type(__c))))
        break;

#if defined (__DMC__)
      }
      _STLP_CATCH_ALL {
        this->_M_handle_exception(ios_base::badbit);
        break;
      }
#endif
      __cguard.release();
      __any_inserted = true;
    }
  }
  _STLP_CATCH_ALL {
    this->_M_handle_exception(ios_base::badbit);
  }
  return __any_inserted;
}