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

Method create

include/boost/asio/impl/executor.hpp:45–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43 typedef BOOST_ASIO_REBIND_ALLOC(Allocator, impl) allocator_type;
44
45 static impl_base* create(const Executor& e, Allocator a = Allocator())
46 {
47 raw_mem mem(a);
48 impl* p = new (mem.ptr_) impl(e, a);
49 mem.ptr_ = 0;
50 return p;
51 }
52
53 static impl_base* create(std::nothrow_t, const Executor& e) noexcept
54 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected