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

Method coroutine_ref

include/boost/asio/coroutine.hpp:270–270  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

268{
269public:
270 coroutine_ref(coroutine& c) : value_(c.value_), modified_(false) {}
271 coroutine_ref(coroutine* c) : value_(c->value_), modified_(false) {}
272 coroutine_ref(const coroutine_ref&) = default;
273 ~coroutine_ref() { if (!modified_) value_ = -1; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected