Function operator bool

Synopsis

#include <src/entt/meta/meta.hpp>

explicit operator bool() const noexcept

Description

Returns true if a meta object is valid, false otherwise.

Return
True if the meta object is valid, false otherwise.

Source

Lines 688-690 in src/entt/meta/meta.hpp.

[[nodiscard]] explicit operator bool() const ENTT_NOEXCEPT {
    return !(node == nullptr);
}





Add Discussion

Log in to comment