Function operator==

Synopsis

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

bool operator==(const meta_type &other) const

Description

Checks if two objects refer to the same type.

Parameters

other - The object with which to compare.

Returns
True if the objects refer to the same type, false otherwise.

Source

Lines 1363-1365 in src/entt/meta/meta.hpp.

[[nodiscard]] bool operator==(const meta_type &other) const ENTT_NOEXCEPT {
    return (!node && !other.node) || (node && other.node && *node->info == *other.node->info);
}





Add Discussion

Log in to comment