Function operator=

Summary

#include <lib/inc/drogon/utils/coroutine.h>

(1) Task & operator=(const Task &)=delete

(2) Task & operator=(Task &&other)

Function overload

Synopsis

#include <lib/inc/drogon/utils/coroutine.h>

Task & operator=(const Task &)=delete

Description

No description yet.

Source

Line 121 in lib/inc/drogon/utils/coroutine.h.

Synopsis

#include <lib/inc/drogon/utils/coroutine.h>

Task & operator=(Task &&other)

Description

No description yet.

Source

Lines 122-132 in lib/inc/drogon/utils/coroutine.h.

Task &operator=(Task &&other)
{
    if (std::addressof(other) == this)
        return *this;
    if (coro_)
        coro_.destroy();
    coro_ = other.coro_;
    other.coro_ = nullptr;
    return *this;
}





Add Discussion as Guest

Log in