Function operator==

Synopsis

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

template <typename Entity>
constexpr bool operator==(const Entity &entity, const null_t &other) noexcept

Description

Compares a null object and an entity identifier of any type.

Template Parameters

Entity - Type of entity identifier.

Parameters

entity - Entity identifier with which to compare.

other - A null object yet to be converted.

Return
False if the two elements differ, true otherwise.

Source

Lines 157-160 in src/entt/entity/entity.hpp.

template<typename Entity>
[[nodiscard]] constexpr bool operator==(const Entity &entity, const null_t &other) ENTT_NOEXCEPT {
    return other.operator==(entity);
}





Add Discussion

Log in to comment