Function operator bool

Synopsis

#include <src/uvw/emitter.h>

explicit operator bool() const noexcept

Description

Checks if the event contains a valid error code.

Returns
True in case of success, false otherwise.

Source

Lines 32-34 in src/uvw/emitter.cpp. Line 72 in src/uvw/emitter.h.

UVW_INLINE ErrorEvent::operator bool() const noexcept {
    return ec < 0;
}





Add Discussion as Guest

Log in