| 135 | BOOST_ASIO_COMPLETION_TOKEN_FOR(void (boost::system::error_code, |
| 136 | std::size_t)) WriteHandler = default_completion_token_t<executor_type>> |
| 137 | auto async_flush( |
| 138 | WriteHandler&& handler = default_completion_token_t<executor_type>()) |
| 139 | -> decltype( |
| 140 | declval<buffered_write_stream<Stream>&>().async_flush( |
| 141 | static_cast<WriteHandler&&>(handler))) |
| 142 | { |
| 143 | return stream_impl_.next_layer().async_flush( |
| 144 | static_cast<WriteHandler&&>(handler)); |
| 145 | } |
| 146 | |
| 147 | /// Write the given data to the stream. Returns the number of bytes written. |
| 148 | /// Throws an exception on failure. |
nothing calls this directly
no test coverage detected