MCPcopy Create free account
hub / github.com/boostorg/asio / assign

Function assign

include/boost/asio/basic_writable_pipe.hpp:304–309  ·  view source on GitHub ↗

Assign an existing native pipe to the pipe. * This function opens the pipe to hold an existing native pipe. * * @param native_pipe A native pipe. * * @throws boost::system::system_error Thrown on failure. */

Source from the content-addressed store, hash-verified

302 * @throws boost::system::system_error Thrown on failure.
303 */
304 void assign(const native_handle_type& native_pipe)
305 {
306 boost::system::error_code ec;
307 impl_.get_service().assign(impl_.get_implementation(), native_pipe, ec);
308 boost::asio::detail::throw_error(ec, "assign");
309 }
310
311 /// Assign an existing native pipe to the pipe.
312 /*

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected