EnTT 4.0.0
Loading...
Searching...
No Matches
entt::null_t Struct Reference

Null object for all identifiers. More...

#include <entity.hpp>

Public Member Functions

template<entity_like Entity>
constexpr operator Entity () const noexcept
 Converts the null object to identifiers of any type.
constexpr bool operator== (const null_t other) const noexcept
 Compares two null objects.
template<entity_like Entity>
constexpr bool operator== (const Entity entity) const noexcept
 Compares a null object and an identifier of any type.

Detailed Description

Null object for all identifiers.

Definition at line 218 of file entity.hpp.

Member Function Documentation

◆ operator Entity()

template<entity_like Entity>
entt::null_t::operator Entity ( ) const
inlinenodiscardconstexprnoexcept

Converts the null object to identifiers of any type.

Template Parameters
EntityType of identifier.
Returns
The null representation for the given type.

Definition at line 225 of file entity.hpp.

◆ operator==() [1/2]

template<entity_like Entity>
bool entt::null_t::operator== ( const Entity entity) const
inlinenodiscardconstexprnoexcept

Compares a null object and an identifier of any type.

Template Parameters
EntityType of identifier.
Parameters
entityIdentifier with which to compare.
Returns
False if the two elements differ, true otherwise.

Definition at line 246 of file entity.hpp.

◆ operator==() [2/2]

bool entt::null_t::operator== ( const null_t other) const
inlinenodiscardconstexprnoexcept

Compares two null objects.

Parameters
otherA null object.
Returns
True in all cases.

Definition at line 235 of file entity.hpp.


The documentation for this struct was generated from the following file: