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

Function assign

include/boost/asio/basic_file.hpp:576–582  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

574 * @throws boost::system::system_error Thrown on failure.
575 */
576 void assign(const native_handle_type& native_file)
577 {
578 boost::system::error_code ec;
579 impl_.get_service().assign(
580 impl_.get_implementation(), native_file, ec);
581 boost::asio::detail::throw_error(ec, "assign");
582 }
583
584 /// Assign an existing native file to the file.
585 /*

Callers

nothing calls this directly

Calls 2

throw_errorFunction · 0.85
assignMethod · 0.45

Tested by

no test coverage detected