Function result

Summary

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

(1) T && result() &&

(2) T & result() &

Function overload

Synopsis

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

T && result() &&

Description

No description yet.

Source

Lines 152-158 in lib/inc/drogon/utils/coroutine.h.

T &&result() &&
{
    if (exception_ != nullptr)
        std::rethrow_exception(exception_);
    assert(value.has_value() == true);
    return std::move(value.value());
}

Synopsis

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

T & result() &

Description

No description yet.

Source

Lines 160-166 in lib/inc/drogon/utils/coroutine.h.

T &result() &
{
    if (exception_ != nullptr)
        std::rethrow_exception(exception_);
    assert(value.has_value() == true);
    return value.value();
}





Add Discussion as Guest

Log in