Bagikan melalui


streambuf::close Method

Closes the stream buffer, preventing further read or write operations.

virtual pplx::task<void> close(
   std::ios_base::openmode mode = (std::ios_base::in | std::ios_base::out)
);

virtual pplx::task<void> close(
   std::ios_base::openmode mode,
   std::exception_ptr eptr
);

Parameters

  • mode
    The I/O mode (in or out) to close for.

  • eptr
    Pointer to the exception.

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class